Azzera filtri
Azzera filtri

how to split num to str ?

2 visualizzazioni (ultimi 30 giorni)
tomer polsky
tomer polsky il 28 Giu 2018
Modificato: madhan ravi il 24 Gen 2019
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 ?

Risposte (1)

madhan ravi
madhan ravi il 5 Lug 2018
Modificato: madhan ravi il 24 Gen 2019
It’s possible using symbolic math toolbox.
syms x y
y=-x-2
coeffs(y)

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by