0001 function matice = matice(varargin)
0002
0003
0004
0005
0006
0007 switch nargin
0008 case 0
0009
0010 matice.id=NaN;
0011 matice.B=NaN;
0012 matice.n=NaN;
0013 matice=class(matice,'matice');
0014
0015 case 1
0016
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