Home > Applications > Horace > @d4d > dimensions.m

iFit/dimensions

PURPOSE ^

Find number of dimensions and extent along each dimension of

SYNOPSIS ^

function [nd,sz] = dimensions(w)

DESCRIPTION ^

 Find number of dimensions and extent along each dimension of
 the signal arrays. 
 - If 0D sqw object, nd=0,  sz=zeros(1,0) (nb: []==zeros(0,0))
 - if 1D sqw object, nd=1,  sz=n1
 - If 2D sqw object, nd=2,  sz=[n1,n2]
 - If 3D sqw object, nd=3,  sz=[n1,n2,n3]   even if n3=1
 - If 4D sqw object, nd=4,  sz=[n1,n2,n3,n4]  even if n4=1

 The convention is that size(sz)=1 x ndim

   >> [nd,sz]=dimensions(w)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1