how to split num to str ?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Réponses (1)
madhan ravi
le 5 Juil 2018
Modifié(e) : madhan ravi
le 24 Jan 2019
It’s possible using symbolic math toolbox.
syms x y
y=-x-2
coeffs(y)
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!