a small question of the sym
显示 更早的评论
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);
1 个评论
Sean de Wolski
2011-4-1
Well-written question; you get a vote!
采纳的回答
更多回答(1 个)
xingyu
2011-4-1
0 个投票
1 个评论
Walter Roberson
2011-4-1
x = 1; double(subs(n))
OR
double(subs(n,x,1)) %without assigning to x
类别
在 帮助中心 和 File Exchange 中查找有关 Symbolic Variables, Expressions, Functions, and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!