Dataset squeeze

From Eigenvector Research Documentation Wiki
Revision as of 15:49, 8 October 2008 by imported>Jeremy (Importing text file)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Purpose

Removes singleton dimensions of a DataSet object.

Synopsis

B = squeeze(A);

Description

Overload of the standard Matlab command SQUEEZE for DataSet objects Returns a DataSet object, B, with the same elements as DataSet object 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

dataset/permute