Mercurial > hg > ltpda
diff m-toolbox/classes/+utils/@models/built_in_model_template.m @ 43:bc767aaa99a8
CVS Update
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Tue, 06 Dec 2011 11:09:25 +0100 |
parents | f0afece42f48 |
children |
line wrap: on
line diff
--- a/m-toolbox/classes/+utils/@models/built_in_model_template.m Wed Nov 23 19:22:13 2011 +0100 +++ b/m-toolbox/classes/+utils/@models/built_in_model_template.m Tue Dec 06 11:09:25 2011 +0100 @@ -20,7 +20,7 @@ % REFERENCES: % % -% VERSION: $Id: built_in_model_template.m,v 1.1 2011/04/29 07:05:54 hewitson Exp $ +% VERSION: $Id: built_in_model_template.m,v 1.2 2011/12/02 09:15:11 hewitson Exp $ % % HISTORY: % @@ -99,11 +99,14 @@ return; end - % build model - pl = varargin{1}; - + %--- Input plist + % Changes to this plist will be captured in the history + historyPlist = varargin{1}; + % This can be locally modified without the changes being reflected in the history + localPlist = copy(historyPlist, 1); + % Get parameters - p = pl.find('My Parameter'); + p = localPlist.find('My Parameter'); % Build the model object the way you want @@ -124,6 +127,6 @@ %-------------------------------------------------------------------------- function v = getVersion - v = '$Id: built_in_model_template.m,v 1.1 2011/04/29 07:05:54 hewitson Exp $'; + v = '$Id: built_in_model_template.m,v 1.2 2011/12/02 09:15:11 hewitson Exp $'; end