powered by
This functions tries to replicate the behavior of the base function "size" in Matlab
size(x, d)
A vector whose size is the number of dimensions of x and whose scale corresponds to the number of elements on (i.e. the size of) each dimension.
object to be evaluated
dimension of object to be evaluated
size(10) size(1:4) size(matrix(1:6, 2)) size(array(1:24, c(2, 3, 4)))
Run the code above in your browser using DataLab