matlab says the inline function will be removed in future release how should i execute a string function like '2*x.^2+5'
显示 更早的评论
function
1 个评论
Stephen23
2017-6-20
How about using anonymous functions, just like the documentation recommends?
采纳的回答
更多回答(1 个)
Andrei Bobrov
2017-6-21
syms y
f = matlabFunction(2*y^2+3);
类别
在 帮助中心 和 File Exchange 中查找有关 Function Creation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!