comparison m-toolbox/m/gui/gltpda/g_logicValCallback.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 g_logicValCallback(hObject, varargin)
2
3 global params
4
5 currParamIndex = get(hObject,'UserData');
6 newValue = get(hObject,'Value')-1;
7 if newValue, newValue = true; else newValue = false; end
8 params = pset(params,params.params(currParamIndex).key,newValue);
9
10 set(findobj('Tag','apply'),'Enable','on');
11 set(findobj('Tag','undo'),'Enable','on');
12
13 end