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

UptoLike

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


 % eventdata reserved - to be defined in a future version of MATLAB
 % handles structure with handles and user data (see GUIDATA)
 % Get default command line output from handles structure
 varargout{1} = handles.output;


 % - Executes on selection change in popupmenu_fcn.
 function popupmenu_fcn_Callback(hObject, eventdata, handles)
 % hObject handle to popupmenu_fcn (see GCBO)
 % eventdata reserved - to be defined in a future version of MATLAB
 % handles structure with handles and user data (see GUIDATA)
 % Hints: contents = get(hObject,'String') returns popupmenu_fcn
 % contents as cell array
 % contents{get(hObject,'Value')} returns
 % selected item from popupmenu_fcn


 % - Executes during object creation, after setting all properties.
 function popupmenu_fcn_CreateFcn(hObject, eventdata, handles)
 % hObject handle to popupmenu_fcn (see GCBO)
 % eventdata reserved - to be defined in a future version of MATLAB
 % handles empty - handles not created until after all CreateFcns called
 % Hint: popupmenu 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_fcn_Callback(hObject, eventdata, handles)
 % hObject handle to edt_fcn (see GCBO)
 % eventdata reserved - to be defined in a future version of MATLAB