Using MATLAB A 100pound object is to be hung from the end of

Using MATLAB. A 100-pound object is to be hung from the end of a rigid 2m horizontal pole of negligible weight. The pole is attached to a wall by a pivot and is supported by an 2m cable that is attached to the wall at a higher point. The tension on this cable is given by the equation: T=(W*lc*lp)/(dlp^2-d^2) Where T is the tension on the cable, W is the weight of the object, lc is the length of the cable, lp is the length of the pole, and d is the distance along the pole at which the cable is attached. Write a program to determine the distance d at which to attach the cable to the pole in order to minimize the tension on the cable. To do this, the program should calculate the tension on the cable at regular 0.1m intervals from d = 0.3m to d = 1.8m, and should locate the position d that produces the minimum tension. Also, the program should plot the tension on the cable as a function of d, with appropriate titles and axis labels.

Solution

%MATLAB CODE for above question

d=0.3:0.1:1.8; %value of \'d\' at which we need to find \'T\' i.e. d = 0.3 to 1.8 in steps of 0.1

W=45.36; % weight 100 pounds = 45.36 Kg

lc=2;

lp=2;

for indx=1:length(d)

T(indx)=(W*lc*lp)/(d(indx)*sqrt(lp^2-d(indx)^2));

if (indx==1)

T_min=T(indx);

d_min=d(indx);

elseif (T_min>T(indx))

T_min=T(indx);

end

end

% plotting the figures

figure(1)

plot(d,T)

title(\'Variation of Tension with distance\')

xlabel(\'distance, d(metres)\') % label on x-axis printed as \"distance, d (metres)\"

ylablel(\'Tension, T(newton)\')

Using MATLAB. A 100-pound object is to be hung from the end of a rigid 2m horizontal pole of negligible weight. The pole is attached to a wall by a pivot and is

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site