Home > phiwave > @phiw_wavelet > private > pr_ndims2.m

pr_ndims2

PURPOSE ^

returns no of dimensions, from size matrix, detecting vectors

SYNOPSIS ^

function n = pr_ndims2(dims)

DESCRIPTION ^

 returns no of dimensions, from size matrix, detecting vectors

 $Id: pr_ndims2.m,v 1.1 2005/06/01 09:29:59 matthewbrett Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function n = pr_ndims2(dims)
0002 % returns no of dimensions, from size matrix, detecting vectors
0003 %
0004 % $Id: pr_ndims2.m,v 1.1 2005/06/01 09:29:59 matthewbrett Exp $
0005 
0006 n = length(dims);
0007 if n == 2 & any(dims == 1), n =1; end

Generated on Wed 06-Jul-2005 18:07:21 by m2html © 2003