| 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 |
Squeeze singleton dimensions from categorical array
B = squeeze(A)
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.
![]() | squareform | stack (dataset) | ![]() |

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 |