Getting size of object with size()

size() is used to get size of an object in matlab.

Example

>> A = [1 2 3
        4 5 6]

A =

     1     2     3
     4     5     6

>> size(A)

ans =

     2     3  % 2 rows and 3 columns