I would like to run a script which asks the user to give an input value. To choose the value the user is assumed to look at the current result represented graphically. It is practically impossible to foreseen which part of the graph has decisive information for choosing the parameter, so that the user is assumed to be able to move along the graph and rescale it if necessary until the decision is taken. In my script it looks as following:
...
scf(f1);plot2d(x,y,1);
w=evstr(x_dialog('Value of the parameter ?','3.1415926'));
...
However in this implementation the graphic window appears to be locked and no operations with it are possible until the input to dialog box is given.
I would appreciate any hint how to overcome this problem.
EDIT: I have found the following temporary solution:
...
scf(f1);plot2d(x,y,1);
disp('Choose the parameter value and type ''resume'' to continue.');
pause;
w=evstr(x_dialog('Value of the parameter ?','3.1415926'));
...
But I still hope for a better solution, such as pressing a keyboard button instead of typing 'resume'. To my sorry xclick()
does not work, as again prevents working with the graphical window.