adplus-dvertising
frame-decoration

Question

What is the output of the following code?
t=linspace(0, 2*pi, .1*pi); plot(t,sin(t)); text[2,-2, ‘Ho !’];

a.

a graph of sin(t)

b.

a graph of inverted sin(t)

c.

a graph with Ho ! written

d.

error

Posted under MATLAB

Answer: (d).error

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following code?

Similar Questions

Discover Related MCQs

Q. How can we introduce texts in a graph?

Q. A stacked horizontal bar-chart can be made in MATLAB by ___________

Q. The color density of the bar-chart drawn from the bar3() command is always proportional to the height of the bars.

Q. The ezsurf command is present in the ___________

Q. colorbar command gives different color to the bar chart following their ______

Q. The meshc() command takes complex inputs.

Q. How do we create horizontal bar graphs in MATLAB?

Q. What is the short name for black as input to the surf command?

Q. What is the range of RGB triplets for the surf command?

Q. What is the RGB triplet style for yellow?

Q. What is the nature of z in surf(x,y,z)?

Q. What is the purpose of the figure command?

Q. What is the size of the z vector in a mesh(x,y,z) if the sizes of x and y vectors are m, n respectively?

Q. How can we group the elements in a 3-d bar graph?

Q. What is the default range used by the fplot command?

Q. In a 2-d Plot, which command will make the axes of the graph same?

Q. What is the period of square wave generated by the square() command?

Q. The general graph of f(a,b)=0 is plotted by ______

Q. A power pattern for an antenna is a __________

Q. Which toolbox provides the plot command?