Please solve the following problem below using MATLAB CODE ONLY Please solve the
ID: 2268818 • Letter: P
Question
Please solve the following problem below using MATLAB CODE ONLY
Please solve the problem by using MATLAB CODE ONLY
As shown, two weights are in state of static equilibrium, hanging from three strings of known lengths. Write 6 equations and solve them in MATLAB to determine the angles (a , ?2, ?3) and tensions (T. T, T3) of the strings. Hint: We can write 4 equations of equilibrium based on ? F, obtained by writing the displacement compatibility relations 0 and ? , 0 for each mass. Two more equations are 3 T. 2 L2 = 5 m W 100 N -5 W2 200 N -6 X (m)Explanation / Answer
%% Dear student, please just copy the code below and paste it in your matlab software, you will get the result.
%% Analysis: If you apply the equlibrium and compatibility condition, you will get six equation with six unknowns.
%% Note: It will take some time to show results, plzz wait....
%%%%%%%%%% MAIN CODE %%%%%%%%%%%%%%
clear; clc;
L1 = 3 ; L2 = 5 ; L3 = 4 ;
syms th1 th2 th3 T1 T2 T3
eqns = [L1*cos(th1) + L2*cos(th2) + L3*cos(th3) == 8,...
L1*sin(th1) + L2*sin(th2) - L3*sin(th3) == 0,...
T1*cos(th1)- T2*cos(th2) == 0,...
T1*sin(th1) - T2*sin(th2) == 100,...
T2*cos(th2) - T3*cos(th3) == 0,...
T2*sin(th2) + T3*sin(th3) == 200];
vars = [th1 th2 th3 T1 T2 T3];
[solth1, solth2, solth3, solT1, solT2, solT3] = solve(eqns, vars)
solutions = [solth1, solth2, solth3, solT1, solT2, solT3]