Skip to Main Content Skip to Search
Product Documentation

ndims - Class: qrandset

Number of dimensions in matrix

Syntax

n = ndims(p)

Description

n = ndims(p) returns the number of dimensions in the matrix that is created by the syntax p(:,:). Since this is always a 2-D matrix, n is always equal to 2.

See Also

qrandset | size

  


 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS