Topics: Plotting Data An Engineer has requested you modify the program you wrote
ID: 3607360 • Letter: T
Question
Topics: Plotting Data An Engineer has requested you modify the program you wrote (program #5) to calculate the deflection at center, deflection at load and the maximum deflection of a level beam with a load at a specified number of equidistant points along the beam that is supported by a point at each end to display the two graphs shown below based on the deflections computed Outline: 1. Note all the labels on each example, the colors of each item, the legend and the symbols used 2 It is suggested that you use the legends in the examples to help identify the colors, types of line and symbols as well as the plot that was used in the figures. 3. Create a MATLAB Script m file -named ProgramQ6am 4. Add the MATLAB commands to generate two Figures that will persist after the script finishes as shown on the next two pages.Explanation / Answer
MATLAB CODE:-
x1 = 1:1:200 %range of x-axis plz modified accordingto the graph
%as it is not visible properly in the screenshot
figure
hold on
plot(maxdef)
plot(x1,def_at_load,'rx')
plot(x1,def_at_center,'b*')
hold off
legend('Max Deflection','Deflection at Load','Deflection at Center')