This preview shows pages 1–4. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: >> y = Eq(ang) >> plot(ang, y) 1 3 4 5 7 8 92 521 515 5 1 y Note that in nonlinear problems like this there may be more than one zero and hence more than one solution. fzero will only find one zero at a time so we must be careful to make sure it is the solution we want. 9/1/11 We could actually solve this problem in one step by writing both the equations we used as : Now make up a MATLAB function with these two equations for the two unknowns, and B function y = Eqs(x) ang = x(1); B = x(2); y(1) = 250*sind(70)*cosd(ang)250*cosd(70)*sind(ang)160*sind(110); y(2) = 250*sind(ang)  B*sind(110); And use fsolve (which, unlike fzero, can solve multiple nonlinear equations) >> x = fsolve( @(x) Eqs(x) , [0;100]) x = 33.0295 145.0132 Initial guesses for angle and force...
View
Full
Document
This note was uploaded on 09/01/2011 for the course E M 274 taught by Professor Donaldsturges during the Fall '07 term at Iowa State.
 Fall '07
 DONALDSTURGES

Click to edit the document details