Borrar filtros
Borrar filtros

how to split num to str ?

2 visualizaciones (últimos 30 días)
tomer polsky
tomer polsky el 28 de Jun. de 2018
Editada: madhan ravi el 24 de En. de 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 ?
  1 comentario
OCDER
OCDER el 28 de Jun. de 2018
I think so. Are you using or do you have symbolic math toolbox?

Iniciar sesión para comentar.

Respuestas (1)

madhan ravi
madhan ravi el 5 de Jul. de 2018
Editada: madhan ravi el 24 de En. de 2019
It’s possible using symbolic math toolbox.
syms x y
y=-x-2
coeffs(y)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by