from
3D Cube Slice
by Oren Rosen Enables reading 2 dim slices of 3 dim matrix stored in MAT file
bytes=sizeof(class)
function bytes=sizeof(class)
% SIZEOF returns the size in bytes of the class
% Example:
% BYTES=SIZEOF('CLASSNAME')
%
% Author: Malcolm Lidierth 07/06
% Copyright Kings College London 2006
% Revisions:
a=cast(0,class);
w=whos('a');
bytes=w.bytes;
end