Mercurial > hg > ltpda
comparison m-toolbox/sltpda/sltpda_getvar.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 function varout = sltpda_getvar(block, var) | |
2 % SLTPDA_GETVAR gets a mask value from a block. If the value can be | |
3 % numeric, it is returned as numeric, otherwise, it is left as a string. | |
4 % | |
5 % usage: varout = sltpda_getvar(block, 'var'); | |
6 % | |
7 % M Hewitson 04-05-07 | |
8 % | |
9 % $Id: sltpda_getvar.m,v 1.1 2007/05/06 12:17:38 hewitson Exp $ | |
10 | |
11 varout = get(block, var); | |
12 if ~isempty(str2num(varout)) | |
13 varout = str2num(varout); | |
14 end |