{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# door - function door(a,b,m,g Function door Solve for...

This preview shows pages 1–2. Sign up to view the full content.

Sheet1 Page 1 function door(a,b,m,g) % Function door % Solve for reactions in a door with two hinges assuming the system is % 1) Statically determinate % 2) Overdetermined % 3) Underdetermined % % The top hinge is 1, and bottom hinge is 2, the door width is a, the % door height is b, the door mass is m, and gravity is g. % % Usage: door(a,b,m,g) % % Inputs: a = door width % b = door height % m = door mass % g = gravity % The top hinge is 1 and the bottom hinge is 2. % X is to the right, Y is verticall upward, and Z is % perpendicular to the door face. The hinges are on the % left side of the door. % % Outputs: Hinge reaction loads Fx, Fy, and Mz for each of the three cases above, % where x = [Fx format short % Case 1: Statically determinate system % Set reaction loads on hinge 2 = 0 disp('Case 1: Statically determinate system') A1 = eye(3) detA1 = det(A1) rankA1 = rank(A1) condA1 = cond(A1) rcondA1 = rcond(A1) b1 = [0 % Solve using the backslash operator disp('Solution using backslash operator') x1 = A1\b1 pause % Solve using the matrix inverse disp('Solution using matrix inverse') invA1 = inv(A1)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}