I want to enable people to input several parameters, such as the number of headerlines, for each run inside the loop, by creating a simple GUI.
for i =1:200; file = ['data' num2str(i) '.txt']; if exist(file)==2; h = uicontrol('style','pushbutton', 'callback', ''); N = get(h, 'String'); [a b] = textread(file, '%f %f %f', 'headerlines', N); end; end;
My question is, how do I program uicontrol, so that when people click the button, it will simply continue the program, rather than callback another m file?
Thank you.
Best Answer