Mercurial > hg > ltpda
comparison m-toolbox/classes/@sigBuilder/cb_toggleAddState.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 % CB_TOGGLEADDSTATE toggles the state of the 'add' flag for each signal | |
2 % | |
3 % M Hewitson | |
4 % | |
5 % $Id: cb_toggleAddState.m,v 1.2 2011/04/08 08:56:35 hewitson Exp $ | |
6 % | |
7 function cb_toggleAddState(varargin) | |
8 | |
9 myh = varargin{1}; | |
10 mainfig = varargin{end}; | |
11 | |
12 % get list handle | |
13 lh = findobj(mainfig.handle, 'Tag', 'sigBuilderSignalList'); | |
14 | |
15 data = get(lh, 'Data'); | |
16 for jj=1:size(data,1) | |
17 data{jj,5} = ~[data{jj,5}]; | |
18 end | |
19 set(lh, 'Data', data); | |
20 | |
21 end |