| 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 |
Length of categorical array
n = length(A)
n = length(A) returns the size of the longest dimension of the categorical array A when A is not empty. If A is a vector, this is the same as its length. length is equivalent to max(size(x)) for nonempty arrays, and 0 for empty arrays.
![]() | length (qrandset) | levelcounts (categorical) | ![]() |

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 |