Dataset squeeze: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
 
imported>Jeremy
No edit summary
 
Line 2: Line 2:
Removes singleton dimensions of a DataSet object.
Removes singleton dimensions of a DataSet object.
===Synopsis===
===Synopsis===
B = squeeze(A);
:B = squeeze(A);
===Description===
===Description===
Overload of the standard Matlab command SQUEEZE for DataSet objects
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.
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===
===See Also===
[[dataset/permute]]
[[dataset_permute]]

Latest revision as of 17:17, 8 October 2008

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