title() command puts the title on the plot, after reading this MATLAB title topic, you will know the theory and examples.
Syntax:
title(‘text’)
Example:
The statement to plot a sine wave in MATLAB is given as
x=0:0.1:2*pi;
y=sin(x);
plot(x,y)
Output:
Adding title label” sine wave” to the plot,
x=0:0.1:2*pi;
y=sin(x);
plot(x,y)
title('sine wave')
Related Topics
MATLAB ylabelThe ylabel command put the label on the y-axis of the plot, after reading this…
MATLAB xlabelThe xlabel command put the label on the x-axis of the plot, after reading this…
MATLAB gridThis command adds or removes grid lines to the plot, after reading this MATLAB grid topic,…
MATLAB axisThis command adds an axis to the plot, after reading this MATLAB axis topic, you will know the…
MATLAB linspacelinspace( ) command or function creates a row vector with elements that are linearly (equally)…