This document contains the solutions to two engineering mechanics problems involving calculating the resultant force given various component forces. It provides the MATLAB code to calculate the resultant force P by knowing one component Px in the first problem, and calculates the resultant force P by knowing all the components of applied forces and the tension in a rope in the second problem. The code shows how to define the given forces and reference triangles to calculate the magnitude and angle of the resultant force.
This document contains the solutions to two engineering mechanics problems involving calculating the resultant force given various component forces. It provides the MATLAB code to calculate the resultant force P by knowing one component Px in the first problem, and calculates the resultant force P by knowing all the components of applied forces and the tension in a rope in the second problem. The code shows how to define the given forces and reference triangles to calculate the magnitude and angle of the resultant force.
This document contains the solutions to two engineering mechanics problems involving calculating the resultant force given various component forces. It provides the MATLAB code to calculate the resultant force P by knowing one component Px in the first problem, and calculates the resultant force P by knowing all the components of applied forces and the tension in a rope in the second problem. The code shows how to define the given forces and reference triangles to calculate the magnitude and angle of the resultant force.
Question 11 Problem 2.29 How to calculate Resultant P by knowing one component Px = 720 N as shown in figure(write MATLAB code only)? Code: >> %First we identify the given components >> Px = 720; >> %We also have a reference triangle given with components >> Dx = 12; >> Dy = -35; >> D = 37; >> %We calculate the cosine component from the reference triangle >> cos = Dx / D; >> %We use this to find the value of P >> P = Px / cos; >> %We also find the Py component by >> Py = P * (Dy / D); >> %we use this to find the angle >> theta = radtodeg(atan(Py / Px)); >> P P= 2220 >> theta theta = -71.0754 >> %Thus Resultant force is 2220N at 71.0754 degrees below x-axis Question 12 How to calculate Resultant P by knowing all the components of the applied forces as shown in figure and tension in rope as 365N(write MATLAB code only)? Code: >> %First we define the forces with C reference >> F1 = 500; >> F2 = 200; >> T3 = 365; >> %Then we declare the reference triangles >> D1 = 25; >> D1x = 24; >> D1y = 7; >> D2 = 5; >> D2x = 4; >> D2y = -3; >> %We can also find the sin and cos values of the tension using the dimensions given >> D3 = 1460; >> D3x = -960; >> D3y = -1100; >> %These values are negative because C is reference >> %Now we can find the components of all forces >> F1x = F1 * (D1x / D1); >> F1y = F1 * (D1y / D1); >> F2x = F2 * (D2x / D2); >> F2y = F2 * (D2y / D2); >> T3x = T3 * (D3x / D3); >> T3y = T3 * (D3y / D3); >> %We use this to find the x and y components of resultant P >> Px = F1x + F2x + T3x; >> Py = F1y + F2y + T3y; >> %We can now find the magnitude and angle >> P = sqrt((Px*Px)+(Py*Py)); >> angle = radtodeg(atan(Py/Px)); >> P P= 474.3680 >> angle angle = -32.5175 >> %Thus the resultant force acting on point C due to force F1 and F2 and tension T3 is 474.3680N at an angle of 32.5175 degree below x-axis.