MATLAB - Vector, Matrix, Array
MATLAB - Vector, Matrix, Array
Susovan Jana
Department of Information Technology
Institute of Engineering & Management, Kolkata, INDIA
Email (O): [email protected]
Email (P): [email protected]
2
Vector in MATLAB
A vector is a one-dimensional array of numbers.
MATLAB allows creating two types of vectors −
─ Row vectors
─ Example: x=[2 5 7 3]
─ Column vectors
─ Example: x=[2
5
7
3]