expression evaluation - Matlab - Evaluate Function from String -


this question has answer here:

some matlab functions handle string functions representation f='a^x^b+sin(c*x)+d' --i.e. curve fitting, optimization, etc.--

suppose variables a,b,c,d , x given. there function evaluating f string representation?

you can eval(f), using eval discouraged https://uk.mathworks.com/help/matlab/matlab_prog/string-evaluation.html


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -