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!