how to split num to str ?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (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)
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!