how to split num to str ?

조회 수: 1 (최근 30일)
tomer polsky
tomer polsky 2018년 6월 28일
편집: madhan ravi 2019년 1월 24일
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
OCDER
OCDER 2018년 6월 28일
I think so. Are you using or do you have symbolic math toolbox?

댓글을 달려면 로그인하십시오.

답변 (1개)

madhan ravi
madhan ravi 2018년 7월 5일
편집: madhan ravi 2019년 1월 24일
It’s possible using symbolic math toolbox.
syms x y
y=-x-2
coeffs(y)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by