how to split num to str ?
이전 댓글 표시
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
2018년 6월 28일
I think so. Are you using or do you have symbolic math toolbox?
답변 (1개)
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)
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!