How to read the data from a symbolic matrix ?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi
I used the follwing code to solve a equation but the data is in a symbolic matrix format.
syms a
f=solve((c3(i)*a^3)+(c2(i)*a^2)-c1(i))
The output is in a symbolic matrix format.
How to read the data from symbolic matrix? I want to load the data to variables a,b and c.
Thanks
댓글 수: 1
답변 (1개)
Sean de Wolski
2015년 3월 17일
doc subs
? This will substitute in values for a b and c. Then you could use double() or vpa() to convert to numeric form.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!