{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# Matlab_HW2 - %Problem 3%Plot the force P required for...

This preview shows page 1. Sign up to view the full content.

Problem 1. Find the inverse of the matrix. format short A = [3 5 8 8 4 2 7 4 2] % Inverse the matrix A: B = inv(A) % Next function returns a number with 4 significant digits: digits(4); vpa(B); %-------------------------------------------------------------------------- %Problem 2. Solve the set by inverting. A = [2 1 -4 0 3 0 8 10 1 -5 9 3 5 0 3 6] % Invert the matrix A: C = inv(A) B = [5 7 8 -15] % Solve the set by multiplying new matrix on vector: X =C*B' %--------------------------------------------------------------------------
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %Problem 3. %Plot the force P required for equilibrium as a function of the sag %distance d on the intervals 2<d<6: d = 2:0.05:6; % Define "theta" using the variable distance d: theta = acos(3/2./d); %Calculate the components of the tension for the pulley, with %force balance,we have: %-F1*cos(theta)+F2*cos(theta)=0' %F1*sin(theta)+F2*sin(theta)=50' %Solving this system gives us: F1 = 25./sin(theta); F2 = 25./sin(theta); plot(d,F1) xlabel('distance')...
View Full Document

{[ snackBarMessage ]}