Solving a over determined system in MATLAB
Show older comments
I have 4 equations and 3 variables. I know that 3 equations are sufficient but my instructor said that the equations make a overdetermined system. My equations are:
e1=(x*(a-principle_stress(1,1)))+(p*y)+(r*z);
e2=(y*(b-principle_stress(1,1)))+(p*x)+(q*z);
e3=(r*x)+(q*y)+(z*(c-principle_stress(1,1)));
eqn4 = (x^2) + (y^2) + (z^2) == 1;
What I did earlier was
eqns=[e1,e2,eqn4];
S = solve(eqns,[x y z]);
The above method matched with the actual answer but is it the correct way of solving a overdetermined system?
Will using
eqns=[e1,e2,e3,eqn4]
solve my problem?
Accepted Answer
More Answers (0)
Categories
Find more on Stress and Strain in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!