MATLAB: A small question of the sym

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);

Best Answer

double(m)
Edit:
You'll need to use subs to fill in the value:
subs(m,'x',1)