Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

squeeze - Class: categorical

Squeeze singleton dimensions from categorical array

Syntax

B = squeeze(A)

Description

B = squeeze(A) returns an array B with the same elements as the categorical array A but with all the singleton dimensions removed. A singleton is a dimension such that size(A,dim)==1. 2-D arrays are unaffected by squeeze so that row vectors remain rows.

See Also

shiftdim

  


Recommended Products

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