adplus-dvertising
frame-decoration

Question

What is the output of the following code?
t=linspace(0,.00002*pi,2*pi);plot(t,cos(t));text(0.5,1,'color','blue')

a.

Syntactical Error due to text command

b.

Input error due to text command

c.

Error in linspace command

d.

A graph of sinusoid with Ho ! written on it

Posted under MATLAB

Answer: (a).Syntactical Error due to text command

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 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?

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 __________