comparison m-toolbox/m/etc/ltpda_run_method.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 % LTPDA_RUN_METHOD runs an LTPDA method inside a script environment to
2 % ensure that callerIsMethod returns false and history will always be
3 % added. This can be useful when objects created deep inside a call-stack
4 % need to have history added.
5 %
6 % CALL
7 % out = ltpda_run_method(fcn, varargin)
8 %
9 % VERSION: $Id: ltpda_run_method.m,v 1.2 2011/04/09 07:38:59 hewitson Exp $
10 %
11 function varargout = ltpda_run_method(fcn, varargin)
12
13 if nargout > 0
14 out = feval(fcn, varargin{:});
15 varargout = utils.helper.setoutputs(nargout, out);
16 else
17 feval(fcn, varargin{:});
18 end
19
20 end