A vector in MATLAB is a matrix with one row or one column. It's critical to understand the difference between row and column vectors. Many programming problems occur when a row vector is used instead of a column vector, and vice versa.
Square brackets [] are used to form column vectors, with semicolons or newlines used to divide elements. The transpose operator can be used to convert a row vector to a column vector (and vice versa).
The length of the greatest array dimension in X is returned by L = length(X). The length of a vector is just the number of elements. The length of an array with more dimensions is max(size(X)).
To make an array containing several elements in a single row, use a comma ',' or a space to separate the elements. A row vector is the name for this sort of array. To make an array with several elements in a single column, use semicolons ';' to divide the elements. A column vector is the name for this sort of array.
x = input(prompt) shows the prompt text and waits for the user to enter a value and press the Return key. The user can use variables in the workspace and enter equations like pi/4 or rand(3). Input returns an empty matrix if the user pushes the Return key without entering anything.
Learner's Ratings
4.7
Overall Rating
82%
10%
3%
0%
5%
Reviews
A
Ashnarayan Kumar Sah
5
good
S
Shivayogi Alligidad
5
Nice teaching. ease to understand
B
Bibash Adhikari
5
Please make several other courses like AutoCAD Electrical free to learn so that many people can afford to learn for free. Really loved your effort of teaching to us.
Y
Yogesh Narayanrao Zade
5
I really like the Teacher and his teaching style... overall its a best course 👍
Nikita Ravindra Dhuppe
4
It's nice
U
uttam kumar
5
I really appreciate the way of teaching of sir......really a very very knowledgeable session for us.
Share a personalized message with your friends.