Use the size() function.
>> size(A,2)
Ans =
3
The second argument specifies the dimension of which number of elements are required which will be ‘2’ if you want the number of columns.
Official documentation.
Use the size() function.
>> size(A,2)
Ans =
3
The second argument specifies the dimension of which number of elements are required which will be ‘2’ if you want the number of columns.
Official documentation.