Use matlab to code 78% istory Bookmarks People Window Help HWApdf x Home Page-21
ID: 3873306 • Letter: U
Question
Use matlab to code 78% istory Bookmarks People Window Help HWApdf x Home Page-2179,23605 x 4, MyU8-Your personal portal : quations And Bo o.edu/bbcswebdav/pid-4285694-dt-content-rid-16397308 1/courses/2179 23605/HW4.pdf LAB SECTION PERSON #: NAME: HW4P3 (10 points) a) A truss is a structure made of 800 lb members joined at their ends. For the truss shown in the figure, the forces in the 11 members are determined by solving the following system of 11 equations. 1200 lb 400 lb 30 ft I 42 ft 48 ft F1 cos 500 + F, = 0, F1 sin 500-400 = 0 , -F, cos 500 + F, + FS cos41° = 0, -F, sin 50° + F3-F, sin 41°-800 = 0, -F, cos 41°-F, + F,o=0, Fs sin 41° + F7-1200 = 0. -F, + F, + F, cos 370-0, -F,-F, sin 37" 0 -r, cos 37"-F,0-4933: 0, Fo sin 37+F110. Rewrite the equations in a matrix format Ax b and write a MATLAB script file named HW4P3 to determine the forces in the members. A positive force means tensile force and a negative force means compressive force. Using the disp function in MATLAB to display the results in a table where the first column displays the member number and the second column displays the corresponding force Whitmice Chapter 4 N.. ptx Whitmire Chapter 4 N... .pptxExplanation / Answer
A = [
cosd(50) 1 0 0 0 0 0 0 0 0 0;
sind(50) 0 0 0 0 0 0 0 0 0 0;
0 -1 0 0 0 1 0 0 0 0 0;
-cosd(50) 0 0 1 cosd(41) 0 0 0 0 0 0;
-sind(50) 0 1 0 -sind(41) 0 0 0 0 0 0;
0 0 0 0 -cosd(41) -1 0 0 0 1 0;
0 0 0 0 sind(41) 0 1 0 0 0 0;
0 0 0 -1 0 0 0 1 cosd(37) 0 0;
0 0 0 0 0 0 -1 0 -sind(37) 0 0;
0 0 0 0 0 0 0 0 -cosd(37) -1 0;
0 0 0 0 0 0 0 0 sind(37) 0 1
];
b = [0;400;0;0;800;0;1200;0;0;4933;0];
x = A;
result = []
for i = 1:size(x)
result = [result; i x(i)];
end
disp(result)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.