i looked at that. could be useful but just entering the values is sufficient.
i have this code: Minimum1=str2double(get(handles.MIN_Input,'String')); Maximum1=str2double(get(handles.MAX_Input,'String')); xlim([Minimum1 Maximum1]);
at the first run you dont know how the graph looks like so you dont set any limits. but my code runs this and doesnt find any value so it stops.
how to program an if that says only to use this xlim line when both values are entered,
so Minimum1=str2double(get(handles.MIN_Input,'String')); Maximum1=str2double(get(handles.MAX_Input,'String'));
if Minimum1 and Maximum1 is entered
xlim([Minimum1 Maximum1]);
if not then just plot xlim auto