Mercurial > hg > ltpda
comparison m-toolbox/classes/@paramValue/getVal.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 % GETVAL returns the default value for this param value | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: GETVAL returns the default value for this param value | |
5 % | |
6 % CALL: val = getVal(paramValue); | |
7 % | |
8 % VERSION: $Id: getVal.m,v 1.4 2011/02/18 16:48:53 ingo Exp $ | |
9 % | |
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
11 | |
12 function varargout = getVal(varargin) | |
13 | |
14 if (varargin{1}.valIndex >= 1) | |
15 varargout{1} = varargin{1}.options{varargin{1}.valIndex}; | |
16 else | |
17 varargout{1} = []; | |
18 end | |
19 | |
20 end |