A student has created a plot of y(t)=t$^{2}$. He is need to show another graph of z(t)=t$^{3}$ in the same plot. But every time he hits the plo

Đức Linh

New member
A student has created a plot of y(t)=t$^{2}$. He is need to show another graph of z(t)=t$^{3}$ in the same plot. But every time he hits the plot() function- MATLAB generates a plot of z(t) vs t but on a different window. What is the error?
A. It is not possible to plot multiple plots
B. He is not using the line function
C. Maybe he is using stem() instead of plot()
D. He is not using the hold function
 
Answer: d
Explanation: The hold command is used to hold the cursor, developed after creating a plot, so that the next graph, when plotted, will appear on the same window where the initial graph was plotted. He may use the line function, but in the code he is using the plot function. So he has to enter the function hold before plotting the graph of z(t).
 

Tìm kiếm

Back
Top