MATLAB: Is there a function that calculates the no. of rows or cols

matlab function

a=[1 1 1;1 1 1;1 1 1;1 1 1]
no of rows=4
col=3

Best Answer

Dear mary, use
[row, col] = size(a)