adplus-dvertising
frame-decoration

Question

A student is trying to plot multiple plots in the same window. But the following code doesn’t allow him to do that. What is the error?
t=0:1:9;
stem(t);
hld;
stem(t^2);

a.

Error in t^2

b.

Error in hld

c.

No error

d.

Error in stem(t)

Posted under MATLAB

Answer: (b).Error in hld

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. A student is trying to plot multiple plots in the same window. But the following code doesn’t allow him to do that. What is the error?