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개)

madhan ravi
madhan ravi 2018년 7월 5일
편집: madhan ravi 2019년 1월 24일

0 개 추천

It’s possible using symbolic math toolbox.
syms x y
y=-x-2
coeffs(y)

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

태그

질문:

2018년 6월 28일

편집:

2019년 1월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by