Mercurial > hg > ltpda
comparison m-toolbox/classes/@sigBuilder/refreshSignalList.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 % REFRESHSIGNALLIST fills the signal list from the signal array | |
2 % | |
3 % M Hewitson | |
4 % | |
5 % $Id: refreshSignalList.m,v 1.2 2011/04/08 08:56:35 hewitson Exp $ | |
6 % | |
7 | |
8 function refreshSignalList(mainfig) | |
9 | |
10 % Get handle to signal list | |
11 sh = findobj(mainfig.handle, 'Tag', 'sigBuilderSignalList'); | |
12 | |
13 % Get objects | |
14 data = {}; | |
15 for jj=1:numel(mainfig.signals) | |
16 obj = mainfig.signals(jj); | |
17 if strcmp(obj.hist.methodInfo.sets{1}, 'From Waveform') | |
18 type = find(obj.hist.plistUsed, 'WAVEFORM'); | |
19 elseif strcmp(obj.hist.methodInfo.sets{1}, 'From Time-series Function') | |
20 type = ['f(' find(obj.hist.plistUsed, 'TSFCN') ')']; | |
21 else | |
22 type = ''; | |
23 end | |
24 data = [data; {type, obj.name, obj.data.nsecs, [' ' char(obj.data.t0) ' '], true}]; | |
25 end | |
26 | |
27 set(sh, 'Data', data); | |
28 set(sh, 'ColumnWidth', {65, 105, 50, 160, 40}); | |
29 | |
30 end |