adplus-dvertising
frame-decoration

Question

What is the output of the following code?
w=[0:.1*pi:2*pi];plot(w,sin(w),’ ’)

a.

A sinusoid

b.

A blank graph

c.

Error in plot command

d.

A sinusoid with a phase difference

Posted under MATLAB Graphics MATLAB

Answer: (a).A sinusoid

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. The fill command cannot take more than ______ inputs.

Q. The default colour of graph generated by the plot command is blue.

Q. The font style of the input text can be changed by the ____

Q. The text given to the graphs can be made bold.

Q. How many objects are created for 24 texts written in the graph?

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?