a small question of the sym
Mostra commenti meno recenti
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 Commento
Sean de Wolski
il 1 Apr 2011
Well-written question; you get a vote!
Risposta accettata
Più risposte (1)
xingyu
il 1 Apr 2011
0 voti
1 Commento
Walter Roberson
il 1 Apr 2011
x = 1; double(subs(n))
OR
double(subs(n,x,1)) %without assigning to x
Categorie
Scopri di più su Symbolic Variables, Expressions, Functions, and Settings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!