f = inline('exp(x)+y.^3','x','y');
syms y;
m = f(2,y);
m(3)
%如题,主要是想把f(2,y)这个一元函数赋给另一个函数,再通过另一个函数求值。请教如何做到

 Accepted Answer

仅供参考
f = inline('exp(x)+y.^3','x','y');
m =@(y) f(2,y);
m(3)

More Answers (0)

Categories

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!