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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -