MATLAB: How to get the row and column from a matrix

for loopMATLAB

I have a matrix A I want to find the size of rows and columns of it . How to do it

Best Answer

Below is the code snippet for it .
[row column] = size(A) % size returns the rows and columns of matrix A
Here is the doc for the same .