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

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -