Please pass my question to other expert I wrote the question again, cause pictur
ID: 2073732 • Letter: P
Question
Please pass my question to other expert
I wrote the question again, cause picture is not clear!
Not: you must Solve on matlab, then type your code (Don't write on paper )
A 200 lb weight W is being hung from the end of a rigid 8 ft. horizontal beam of negligible weight as shown. The beam has attached to a wall by a pivot and supperted by a 8 foot long cable that is also attached to that wall at a higher point. The tesnion in this cable is given by the equation
Where T is the tension in the cable, W is the weight, Lc is length of calbe, Lb lenght of beam and d is the distance along the beam at which cable is attached. Write a Matlab code to determine distance d where the cable should be attached to the beam such that the tension T in the cable is minimized.
Do to this the program should ask the user to input the weight W, Lengths Lb and Lc than calculate the tesnion T at regular 0.01ft intervals for 1'
Copy and paste your ouspat from tprintt statemenst inte your script flle as a A 200bh weight "w being hung from the end of a rieid &honirootal; beam of eglignible weghe shown. The beums is sttached to a wall by a prvot and in supported by an t- foot lone cable thiat is aleo atached to thn wall at a higher pout The tension in do hble is eiven by the equation where Tiw the tension im the cable, ss the weight, Le is the lengtt of the cable. Lb s the length of tbe bram·and dzu the distance along the beam t which the cable Is attached wrte a MATLAB code determine distance d where the cable should be attached to the beam such that the tension T in the cable is miminized To do this, the program should ask the user to imput the weight W. lengths Lc and Ly, then calculate the tension Tat regular 001-ft ntenals for rsd The program should then locate the position d that produces the minimum tension and display the result using fprintf. Also the program should plot the tension 7as a function of d with appropriate title and axis labels (50 Points) Cable L, = 8.Explanation / Answer
Lc = input('Enter the length of the cable in ft:'); % Length of the cable
Lb = input('Enter the length of the beam in ft:'); % Length of the beam
W = input('Enter the mass of the weight in lb:'); % Weight of the beam
interval = 0.01; % Interval of d.
lim = [0 Lb]; % Limits of d - indicates the range in which the cable can be attached
d = lim(1):interval:lim(2); % distance along the beam at which cable is attached
T = (W*Lc*Lb)./(d.*(Lc^2-d.^2).^0.5); % Tension in the cable
Tmin = min(T); % Minimum value of the Tension in the cable
dmin = find(T == min(T))*interval+lim(1); % distance along the beam at which
% cable is attached to have a minimum
% Tension
fprintf('distance along the beam at which cable should be attached for minimum tension is %.2d ft', dmin)