| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Statistics Toolbox |
| Contents | Index |
| Learn more about Statistics Toolbox |
Number of dimensions in matrix
n = ndims(p)
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.
![]() | ndims (dataset) | NDims property (NaiveBayes) | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |