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

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

minify - Minimizing css files -

php - How to remove letter in front of the word laravel -