Hauptinhalt

squeeze

Remove singleton dimensions for umat objects

Syntax

B = squeeze(A)

Description

B = squeeze(A) returns an array B with the same elements as 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.

Version History

Introduced before R2006a

See Also

|