comparison m-toolbox/classes/@plist/simplify.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 % SIMPLIFY simplifies a plist.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: SIMPLIFY simplifies a plist by replacing any paramValue with
5 % its default value, thus throwing away any properties,
6 % options etc. This makes copying much lighter if the plist is
7 % in a tight loop.
8 %
9 % CALL: pl.simplify;
10 %
11 % <a href="matlab:utils.helper.displayMethodInfo('plist', 'simplify')">Parameters Description</a>
12 %
13 % VERSION: $Id: simplify.m,v 1.3 2011/04/08 08:56:21 hewitson Exp $
14 %
15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
16
17 %
18 function varargout = simplify(varargin)
19
20 pl = varargin{1};
21
22 for kk=1:pl.nparams
23 p = pl.params(kk);
24 val = p.getVal;
25 p.setVal(val);
26 end
27
28 end
29