a small question of the sym
Ä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
Sean de Wolski
am 1 Apr. 2011
Well-written question; you get a vote!
Akzeptierte Antwort
Weitere Antworten (1)
xingyu
am 1 Apr. 2011
0 Stimmen
1 Kommentar
Walter Roberson
am 1 Apr. 2011
x = 1; double(subs(n))
OR
double(subs(n,x,1)) %without assigning to x
Kategorien
Mehr zu Symbolic Variables, Expressions, Functions, and Settings finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!