Mercurial > hg > ltpda
comparison m-toolbox/classes/@ltpda_uoh/clearHistory.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 % CLEARHISTORY Clears the history of an object with history. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: CLEARHISTORY Clears the history of an object with history. | |
5 % This is a hidden method and use this method carefully. | |
6 % | |
7 % CALL: objs = clearHistory(objs) | |
8 % objs = objs.clearHistory() | |
9 % | |
10 % VERSION: $Id: clearHistory.m,v 1.3 2011/04/08 08:56:30 hewitson Exp $ | |
11 % | |
12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
13 function varargout = clearHistory(varargin) | |
14 | |
15 for kk=1:nargin | |
16 if isa(varargin{kk}, 'ltpda_uoh') | |
17 varargin{kk}.hist = []; | |
18 end | |
19 end | |
20 | |
21 varargout = varargin; | |
22 end |