Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

!!!!!USING MATLAB!!!!!!!!!! !!!USING MATLAB!!!! A mass m is suspended by three c

ID: 3795394 • Letter: #

Question

!!!!!USING MATLAB!!!!!!!!!!

!!!USING MATLAB!!!!

A mass m is suspended by three cables attached at points B, C & D, as shown at right. Let T1, T2 & T3 be the tensions in the three cables AB, AC, AD, respectively. The static equilibrium equations for this structure are T_1/ squareroot 35 - 3T_2/ squareroot 34 + T_3/ squareroot 42 = 0 3T_1/ squareroot 35 - 4T_3/ squareroot 42 = 0 5T_1/ squareroot 35 + 5T_2/ squareroot 34 + 5T_3 squareroot 42 - mg = 0 Write a function CableMass, that takes in a value for the weight (mg) as input, and returns the three tensions as output in a single column vector. >> Cable Mass(1) ans = 0.5071 0.2915 0.4166

Explanation / Answer


%%create a function called CableMass that take weight ,mg as input
function CableMass(wt)
   %%write matrix form of Tensions coefffients
   %%[T1 T1 T1]
   %%[T2 T2 T2]
   %%[T3 T4 T3]
   %%as shown below, sqrt is function for sqare root of value
   A=[1/sqrt(35) -3/sqrt(34) 1/sqrt(42) ; 3/sqrt(35) 0 -4/sqrt(42) ; 5/sqrt(35) 5/sqrt(34) 5/sqrt(42)];

   %% vector of constant values of each equation
   B=[0 ;0;wt ]
   %%matrix solve for X value

    X=AB

--------------------------------------------------------------------------------

Sample output:

X=


0.50709
0.29155
0.41662