matice

PURPOSE ^

MATICE - constructor for matice object

SYNOPSIS ^

function matice = matice(varargin)

DESCRIPTION ^

MATICE - constructor for matice object

   Usage:
      matice = matice(varargin)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function matice = matice(varargin)
0002 %MATICE - constructor for matice object
0003 %
0004 %   Usage:
0005 %      matice = matice(varargin)
0006 
0007 switch nargin
0008 case 0
0009     % if no input arguments, create a default object
0010     matice.id=NaN;
0011     matice.B=NaN;
0012     matice.n=NaN;
0013     matice=class(matice,'matice');
0014                 
0015 case 1
0016     %If single argument of class matice, we have a copy constructor.
0017     if (isa(varargin{1},'matice'))
0018         matice = varargin{1};
0019     else
0020         error('matice constructor error message: copy constructor called on a non ''matice'' class object');
0021     end 
0022 otherwise
0023     error('matice constructor error message: 0 of 1 argument only in input.');
0024 end

Generated on Sun 29-Mar-2009 20:22:55 by m2html © 2003