edit_If_Callback.m 476 Bytes
function edit_If_Callback(hObject, eventdata, handles)

global S

I0 = str2num(handles.edit_I0.String);
If = str2num(handles.edit_If.String);
N  = numel(S.dnum);

% Security
if If<I0  
    If = I0; 
    handles.edit_If.String = num2str(I0) ;
end
if If>N
    If = N ; 
    handles.edit_If.String = num2str(N) ;
end

axes(handles.ax_track) ;
cla;

guidata(hObject, handles);
update_plots(hObject, eventdata, handles) ;

% Update handles structure
guidata(hObject, handles);

end