MATLAB: Could anyone tell me how to display the row size of the matrix,if the size of the row keeps on changing.

size;

could anyone tell me how to display the row size of the matrix,if the size of the row keeps on changing.

Best Answer

Try this wherever you want to report the number of rows:
message = sprintf('The number of rows = %d.\n', size(yourData));
fprintf('%s', message);
uiwait(helpdlg(message));
If that doesn't do it for you, then try this link