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

 Respuesta aceptada

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!