a small question of the 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);
1 件のコメント
Sean de Wolski
2011 年 4 月 1 日
Well-written question; you get a vote!
採用された回答
その他の回答 (1 件)
xingyu
2011 年 4 月 1 日
0 投票
1 件のコメント
Walter Roberson
2011 年 4 月 1 日
x = 1; double(subs(n))
OR
double(subs(n,x,1)) %without assigning to x
カテゴリ
ヘルプ センター および File Exchange で Symbolic Variables, Expressions, Functions, and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!