comparison m-toolbox/classes/@history/getObjectClass.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % GETOBJECTCLASS get the class of object that this history refers to.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: GETOBJECTCLASS get the class of object that this history
5 % refers to.
6 %
7 % CALL: cl = getObjectClass(h);
8 %
9 % INPUT: h - history object
10 %
11 % OUTPUT: cl - the class that this history refers to
12 %
13 % VERSION: $Id: getObjectClass.m,v 1.6 2010/08/18 15:15:54 ingo Exp $
14 %
15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
16
17 function varargout = getObjectClass(varargin)
18
19 % Check the inputs
20 if nargin ~= 1
21 error('### This method accepts only one history object.');
22 end
23
24 h = varargin{1};
25
26 varargout{1} = h.objectClass;
27 end
28