a small question of the sym
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Akzeptierte Antwort
Sean de Wolski
am 1 Apr. 2011
double(m)
Edit:
You'll need to use subs to fill in the value:
subs(m,'x',1)
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Symbolic Variables, Expressions, Functions, and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!