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

 Réponse acceptée

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!