how to split num to str ?
1 回表示 (過去 30 日間)
古いコメントを表示
hello I want to to split a number to str . for exmaple if I write y=-x-2
then I want to get coffient of x
coffient_of_x=-1
k=-2
is it posbile ?
1 件のコメント
回答 (1 件)
madhan ravi
2018 年 7 月 5 日
編集済み: madhan ravi
2019 年 1 月 24 日
It’s possible using symbolic math toolbox.
syms x y
y=-x-2
coeffs(y)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!