MATLAB: If i have matrix x is 4 by 5, how can I retrieve the the row number and save it into y

row

so y=4

Best Answer

y = size(x,1)