Question
write a MATLAB SCRIPT that will output A and B.

Problem 7.4 - Weight Supported by Two Cables PROBLEM DESCRIPTION This example is illustrated in the fure below. A weight W is
be two answers to the problem: a) the shortest length or can be without Tas nor TAC 100lb and b) a plot of the tension forces
0 0
Add a comment Improve this question Transcribed image text
Answer #1

clc
clear all

syms TAB TAC % sybolic variable for T_AB and T_AC
%% Given values
D = 6;
L_AB = 3;
W = 2000;
%% Computations
L_AC = 3.01:0.005:6.7; % array of length L_AC
% define empty arrays
T_AB = [];
T_AC = [];
for i =1:length(L_AC)
% calculate theta and phi
theta = acosd((D^2+L_AB^2-L_AC(i)^2)/2/D/L_AB);
phi = asind(L_AB*sind(theta)/L_AC(i));
% system of equations has to be solved
eq1 = -TAB*cosd(theta) +TAC*cosd(phi)==0;
eq2 = TAB*sind(theta)+TAC*sind(phi)==W;
% solving system of equations
k = solve([eq1 eq2],TAB, TAC);
T_AB = [T_AB, double(k.TAB) ];
T_AC = [T_AC, double(k.TAC) ];

end
%% Find the element in array L_AC for which L_AC is minumum and neither
% T_AC nor T_AB greater than 2000 lb
flag = 0;
i = 0;
while flag ==0
i = i +1;
if(T_AB(i)<=2000 && T_AC(i)<=2000)
flag = 1;
break
end
end
% displaying and plotting results
fprintf('Answer a): The shortest length L_AC can be without\n');
fprintf(' T_AB nor T_AC exceeding 2000 lb is %0.3f''\n',L_AC(i));
plot(L_AC(i:end),T_AC(i:end),'-k',L_AC(i:end),T_AB(i:end),'--k');
xlabel('Length L_{AC} (ft)');
ylabel('T_{AB} and T_{AC} (lb)');
legend('T_{AB}','T_{AC}');
title('Answer b) The plot of the tension forces T_{AB} and T_{AC} vs L_{AC}');

Command Window Answer a): The shortest length L AC can be without T_AB nor T_AC exceeding 2000 lb is 4.025 fx >>|

Answer b) The plot of the tension forces Tae and Tac Vs LAC 2000 - - 1800 - - - - - - - - - - -- - - - - - - - - -- - - - - -

Add a comment
Know the answer?
Add Answer to:
write a MATLAB SCRIPT that will output A and B. Problem 7.4 - Weight Supported by...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Part A-Finding the tension in cable AC A weight of 175 lb acts at C on...

    Part A-Finding the tension in cable AC A weight of 175 lb acts at C on the strut. Find the magnitude of the tension in cable AC. Learning Goal: Express your answer to three significant figures and include the appropriate units. To apply the condition of equilibrium to three- dimensional systems and solve for unknown forces. View Available Hint(s) As shown, a mass is being lifted by a strut that is supported by two cables AC and CD. The dimensions...

  • Three-Dimensional Force Systems cable AC Part A Finding the tension Learning Goal: weight of 115 lb...

    Three-Dimensional Force Systems cable AC Part A Finding the tension Learning Goal: weight of 115 lb acts at C on the strut. Find the magnitude of the tension in cable AC To apply the condition of equilibrium to three-dimensional systems and solve for unknown forces. Express your answer to three significant figures and include the appropriate units. View Available Hint(s) As shown, a mass is being lifted by a strut that is supported by two cables AC and CD. The...

  • ements Constants ents SOLUTION We will look at an example where several forces are acting on...

    ements Constants ents SOLUTION We will look at an example where several forces are acting on an object, but in this case the forces are not all along the same axis. As shown in (Figure 1), a car engine with weight to hangs from a chain that is linked at point to two other chains, one fastened to the ceiling and the other to the wall. Find the tension in each of the three chains, assuming that is given and...

  • Matlab problem! Description The deflection of a cantilevered beam with a point load is Wx2 :),...

    Matlab problem! Description The deflection of a cantilevered beam with a point load is Wx2 :), 0<xsa Wa? ATT (3x-a), a SXSL where E= Young's Modulus (psi) I=moment of inertia (in^4) L = Length (in) a=location of point load (in) W = load (lbf)- Objectives We wish to study the deflection as function of x for a given set of system parameters.--To- accomplish this task, we will create two separate M-files. M-file-1 This function-M-file should generate a plot of y...

  • Unable to correct errors from my MatLab Script and would like to see a script to...

    Unable to correct errors from my MatLab Script and would like to see a script to compare mine to. Write a MatLab script that simulates a virus spread. This problem needs the following parts, some of which are nested loops, ie Part 3, 4 and 5 are nested in Part 2’s loop (for or while): To build the program first to only deal with infection transmission within the town’s neighbors An array which for every person in the town which...

  • summatize the following info and break them into differeng key points. write them in yojr own...

    summatize the following info and break them into differeng key points. write them in yojr own words   apartus 6.1 Introduction—The design of a successful hot box appa- ratus is influenced by many factors. Before beginning the design of an apparatus meeting this standard, the designer shall review the discussion on the limitations and accuracy, Section 13, discussions of the energy flows in a hot box, Annex A2, the metering box wall loss flow, Annex A3, and flanking loss, Annex...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT