Разработка графического пользовательского интерфейса в среде MATLAB. Бадриев И.Б - 105 стр.

UptoLike

9 Ëèñòèíã ïðîãðàììû                                                    105


 % See ISPC and COMPUTER.
 if ispc && isequal(get(hObject,'BackgroundColor'),...
       get(0,'defaultUicontrolBackgroundColor'))
 set(hObject,'BackgroundColor','white');
 end


 function edt_end_Callback(hObject, eventdata, handles)
 % hObject handle to edt_end (see GCBO)
 % eventdata reserved - to be defined in a future version of MATLAB
 % handles structure with handles and user data (see GUIDATA)
 % Hints: get(hObject,'String') returns contents of edt_end as text
 % str2double(get(hObject,'String')) returns contents of
 % edt_end as a double
 % - Executes during object creation, after setting all properties.
 function edt_end_CreateFcn(hObject, eventdata, handles)
 % hObject handle to edt_end (see GCBO)
 % eventdata reserved - to be defined in a future version of MATLAB
 % handles empty - handles not created until after all CreateFcns called
 % Hint: edit controls usually have a white background on Windows.
 % See ISPC and COMPUTER.
 if ispc && isequal(get(hObject,'BackgroundColor'),...
       get(0,'defaultUicontrolBackgroundColor'))
 set(hObject,'BackgroundColor','white');
 end


 function edt_step_Callback(hObject, eventdata, handles)
 % hObject handle to edt_step (see GCBO)
 % eventdata reserved - to be defined in a future version of MATLAB
 % handles structure with handles and user data (see GUIDATA)
 % Hints: get(hObject,'String') returns contents of edt_step as text