Question: using MATLAB: The height of a cable y (m) can be calculated with the following equation: TA y = cosh TA WX TA + Yo
using MATLAB:



The height of a cable y (m) can be calculated with the following equation: TA y = cosh TA WX TA + Yo w where TA is the tension force at point A (1000 N) w is the weight of the cable per unit length (12 N/m) x is the length of the cable (m) Yo is the initial height of the cable (4 m) Several cables should be analyzed: Cable Lengths x (m) Cable 1 60 Cable 2 30 Cable 3 75 Cable 4 55 Cable 5 40 Your MATLAB code should complete the following tasks: Define the length of the cable as a vector using the data shown above. Calculate the height of the cable for each cable length. Use the dot operator only where necessary. HINT: cosh is an hyperbolic cosine function. Assume radians. Calculate the minimum and maximum height. Display an output message and the minimum and maximum height values using the appropriate built-in MATLAB function. Create a figure to show the results. Plot the length of the cable on the x-axis and the height on the y-axis. Create a single point for each cable. HINT: You will need to use separate plot commands to plot each point. How could you INDEX the variables to access the values for each cable? . You should plot EACH point using a different color and marker style. You do NOT need to match the solution figure. Create x and y labels. Create a title. Create a legend. Solution figure: Cable Height 45 40 o Cable 1 Cable 2 Cable 3 Cable 4 Cable 5 35 30 A Height (m) 20 15 105 6 5 30 35 40 45 35 70 75 50 56 80 Cable Length (m)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
