Matlab-Matrix Tutorial
Selected Reading
- Matlab Matrix - Discussion
- Matlab Matrix - Useful Resources
- Matlab Matrix - Quick Guide
- Matlab-Matrix - Deletion Row & Coloumn
- Matlab-Matrix - Transpose
- Matlab-Matrix - Rank
- Matlab-Matrix - Trace
- Matlab-Matrix - Inverse
- Matlab-Matrix - Matrix Determinant
- Matlab-Matrix - Subtraction
- Matlab-Matrix - Addition
- Matlab-Matrix - Multiplication
- Matlab-Matrix - Working with Matrices
- Matlab-Matrix - Create Matrix
- Matlab-Matrix - Environment Setup
- Matlab-Matrix - Introduction
- Matlab-Matrix - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Matlab-Matrix - Rank
Matlab-Matrix - Rank
The rank of the matrix is the number of pnearly independent columns in a matrix. The function rank() helps to return the rank of a given matrix.
Example
Consider following example for the use of rank() function for a matrix −
a = [ 1 2 3; 2 3 4; 1 2 5] test = rank(a)
Output
The output in MATLAB on execution of the code is as follows −
>> a = [ 1 2 3; 2 3 4; 1 2 5] test = rank(a) a = 1 2 3 2 3 4 1 2 5 test = 3 >>Advertisements