From: David on
I am writing a m-file that first has a user enter a number, then pick a point off of a graph, and then enter a final number. Similar to the code below.

input_1 = input('Enter a number ') ;
yy = @(x) sin(x); figure(1); ezplot(yy);
fig = figure(1);
obj_1 = datacursormode(fig);
set(obj_1,'DisplayStyle','window','Enable','on')
figure(1)
disp('Pick point on graph and then press enter');
pause
point_info = getCursorInfo(obj_1);
point = point_info.DataIndex;
input_2 = input('Enter a number ');

I am having problems with the final input command, after the point is picked off of the graph "input_2" is automatically filled with with an empty matrix rather than asking for an input. Has anyone run into this problem before and if so what is the solution? I am running MATLAB 7.10.0 (R2010a)
Thanks,
David