how to split num to str ?
古いコメントを表示
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 件のコメント
OCDER
2018 年 6 月 28 日
I think so. Are you using or do you have symbolic math toolbox?
回答 (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)
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!