The xlabel command put the label on the x-axis of the plot, after reading this MATLAB xlabel topic, you will know the theory, and examples, and you will understand how to use it in MATLAB.
Syntax:
xlabel(‘text’)
Your Tutor
The xlabel command put the label on the x-axis of the plot, after reading this MATLAB xlabel topic, you will know the theory, and examples, and you will understand how to use it in MATLAB.
xlabel(‘text’)
The ylabel command put the label on the y-axis of the plot, after reading this MATLAB ylabel topic, you will know the theory, and examples, and you will understand how to use it in MATLAB.
ylabel(‘text as string’)
title() command puts the title on the plot, after reading this MATLAB title topic, you will know the theory and examples.
title(‘text’)
This command adds or removes grid lines to the plot, after reading this MATLAB grid topic, you will know the theory, and examples, and you will understand how to use it in MATLAB.
grid on grid off
This command creates an array of all ones, after reading this MATLAB ones topic, you will know the theory, and examples, and you will understand how to create a matrix with all elements one in MATLAB.
ones(n) ones(n,m)
length() command or function gives the number of elements in a vector or length of largest matrix size, after reading this MATLAB length topic, you will know the theory and examples.
length(n)
reshape() command or function reshapes a matrix or vector, after reading this MATLAB Reshape topic, you will know the theory and examples.
reshape(n,a,b)
linspace( ) command or function creates a row vector with elements that are linearly (equally) spaced, after reading this MATLAB linspace topic, you will know the theory and examples.
linspace(xf,xl,n)
diag() command or function gives diagonal elements or creates a diagonal matrix, after reading this MATLAB diagonal matrix topic, you will know the theory and examples.
diag(n)
mean( ) command or function gives the mean or average value of vector or matrix or array elements, after reading this MATLAB mean topic, you will know the theory and examples.
mean(n)