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
 Fall '07
 DONALDSTURGES
 Quadratic equation, Elementary algebra, ang, fzero

Click to edit the document details