comparison m-toolbox/classes/@repogui/cb_condPlusBtn.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_CONDPLUSBTN add a condition to the query panel
2 %
3 % M Hewitson
4 %
5 % $Id: cb_condPlusBtn.m,v 1.2 2011/04/08 08:56:26 hewitson Exp $
6 %
7 function cb_condPlusBtn(varargin)
8
9
10 myh = varargin{1};
11 mainfig = varargin{end};
12
13 mainfig.Nconditions = mainfig.Nconditions + 1;
14 if mainfig.Nconditions > 5
15 mainfig.Nconditions = 5;
16 warning('!!! Can''t have more than 5 conditions.');
17 end
18
19 buildConditions(mainfig);
20
21 end