a small question of the sym
3 views (last 30 days)
Show older comments
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);
Accepted Answer
Sean de Wolski
on 1 Apr 2011
double(m)
Edit:
You'll need to use subs to fill in the value:
subs(m,'x',1)
0 Comments
More Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!