Home > Objects > @iData > squeeze.m

iFit/squeeze

PURPOSE ^

c = squeeze(a) : remove singleton dimensions from iData objects/arrays

SYNOPSIS ^

function a = squeeze(a)

DESCRIPTION ^

 c = squeeze(a) : remove singleton dimensions from iData objects/arrays

   @iData/squeeze returns an object 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.
   In addition, to further 'clean' an object, use: fill(a) and pack(a)

 input:  a: object or array (iData)
 output: c: object or array (iData)
 ex:     c=squeeze(iData(rand(5,1,3)));

 Version: Nov. 27, 2018
 See also iData, iData/size, iData/resize, iData/permute, iData/reshape, iData/fill

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 27-Nov-2018 10:56:24 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1