Function "solve" returns a struct
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I have the following equation:
where 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 Kommentare
Siehe auch
Kategorien
Mehr zu Conversion Between Symbolic and Numeric finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!