is there a function that calculates the no. of rows or cols
Show older comments
a=[1 1 1;1 1 1;1 1 1;1 1 1]
no of rows=4
col=3
Accepted Answer
More Answers (1)
Sean de Wolski
on 2 Dec 2013
[r,c] = size(a);
For more info:
doc size
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!