Home > rest_20090422 > rest_spm5_files > @create_file_array > numel.m

numel

PURPOSE ^

Number of simple file arrays involved.

SYNOPSIS ^

function t = numel(obj)

DESCRIPTION ^

 Number of simple file arrays involved.
 _______________________________________________________________________
 Copyright (C) 2005 Wellcome Department of Imaging Neuroscience

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

numel.m

SOURCE CODE ^

0001 function t = numel(obj)
0002 % Number of simple file arrays involved.
0003 % _______________________________________________________________________
0004 % Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
0005 
0006 %
0007 % $Id: numel.m 253 2005-10-13 15:31:34Z guillaume $
0008 
0009 
0010 % Should be this, but it causes problems when accessing
0011 % obj as a structure.
0012 %t = prod(size(obj));
0013 
0014 t  = numel(struct(obj));

Generated on Wed 29-Apr-2009 01:06:38 by m2html © 2005