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

Please solve using matlab ESPECIALLY part B and show output as shown in the prob

ID: 3736318 • Letter: P

Question

Please solve using matlab ESPECIALLY part B and show output as shown in the problem!!!! . Fire Truck and Water Flow The ladder of a fire truck can be elevated (increase of angle rotated about the z axis (increase of angle 0), and extended (increase of r). Initially the ladder rest on the truck -0,0-0,r 8.25 m. The ladder is moved to position by raising the ladder at a range of ,-5.00 degs, rotating of)-7.50 deg/s, and extending the ladder at a rte of r'-0.50 m/s a) Determine and plot the position of the tip of the ladder for 25 second. b) If the water leaves the fire hose at a speed of 18.5 m/s, determine and plot the trajectory of the water flow. Ladder Position and Water Arc 0 30 N 20 10 60 30 20 20 10 .20 -10

Explanation / Answer

format short
r_speed = 0.5;
theta_speed = 7.5;
phi_speed = 5;

r = [8.25:0.5:20.25]
phi = [];
theta = [];
p = 0;
t = 0;
for i=1:1:25
p = p + phi_speed;
t = t + theta_speed;

if( p > 90)
phi = [phi (180-p)*pi/180];
else
phi = [phi p*pi/180];  
end

if(t > 90)
theta = [theta (180-t)*pi/180];
else
theta = [theta t*pi/180];
end

end

x = r.*cos(phi).*cos(theta);
y = r.*cos(phi).*sin(theta);
z = r.*sin(phi);

figure()
plot3(y,x,z)
ylabel('y-axis')
xlabel('x-axis')
zlabel('z-axis')
title('Position of tip of ladder')