how to split num to str ?
Ältere Kommentare anzeigen
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 Kommentar
OCDER
am 28 Jun. 2018
I think so. Are you using or do you have symbolic math toolbox?
Antworten (1)
madhan ravi
am 5 Jul. 2018
Bearbeitet: madhan ravi
am 24 Jan. 2019
It’s possible using symbolic math toolbox.
syms x y
y=-x-2
coeffs(y)
Kategorien
Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!