Function "solve" returns a struct
조회 수: 23 (최근 30일)
이전 댓글 표시
Hi, I have the following equation:

where
are defined by syms.
are defined by syms.I need to find
in that equation, so my solution should be: 
I have used the following code:
sol=solve(equation==0, cos(q1))
However, what I get in my console is:
sol =
struct with fields:
q1: [0×1 sym]
q2: [0×1 sym]
Then I added:
sol.q1
and I got in the console:
ans =
Empty sym: 0-by-1
댓글 수: 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!