a small question of the sym
3 次查看(过去 30 天)
显示 更早的评论
Hi I don't know how to get the numerical number after define sym. a simple code is shown as follows, how to get the value of m when x=1? Thanks
syms x n=sin(x^2); m=diff(n,x);
采纳的回答
Sean de Wolski
2011-4-1
double(m)
Edit:
You'll need to use subs to fill in the value:
subs(m,'x',1)
0 个评论
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!