adplus-dvertising
frame-decoration

Question

What is the output of the following code?
plot(linspace[0,3*pi],square[linspace[0,3*pi]]);

a.

A square wave from 0 to 3*pi

b.

A square wave with 50% duty cycle from 0 to 3*pi

c.

A square wave with 50% duty cycle

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. In a 2-d Plot, which command will make the axes of the graph same?

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

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

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. What is the purpose of the figure command?

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

Q. What is the RGB triplet style for yellow?

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

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

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

Q. The meshc() command takes complex inputs.

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

Q. The ezsurf command is present in the ___________

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

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

Q. How can we introduce texts in a graph?

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

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

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

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