comparison m-toolbox/m/gui/ltpdv/callbacks/ltpdv_preproc_param_act.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 ltpdv_preproc_param_act(varargin)
2
3
4 % Handles
5 myh = varargin{1};
6 panh = varargin{end};
7
8 % Parameter panel children handles
9 pancomps = getappdata(panh, 'pancomps');
10
11 % My state
12 val = get(myh, 'Value');
13
14 % My line
15 ml = find(myh==[pancomps{:,3}]);
16
17 if val
18 set(pancomps{ml,2}, 'Enable', 'on');
19 else
20 set(pancomps{ml,2}, 'Enable', 'off');
21 end
22
23
24
25