ВУЗ:
Составители:
106 Èíòåðôåéñ â ñðåäå MATLAB % str2double(get(hObject,'String')) returns contents of % edt_step as a double % - Executes during object creation, after setting all properties. function edt_step_CreateFcn(hObject, eventdata, handles) % hObject handle to edt_step (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 % - Executes on button press in btnPlot. function btnPlot_Callback(hObject, eventdata, handles) % hObject handle to btnPlot (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Óêàçûâàåì, ÷òî â ýòîé ôóíêöèè èñïîëüçóåòñÿ % ãëîáàëüíàÿ ïåðåìåííàÿ My_Color global My_Color; % Ïîëó÷àåì äàííûå ââåäåííûå ïîëüçîâàòåëåì â îáúåêòû "ïîëå äëÿ ââîäà" FcnName=get(handles.edt_fcn,'String'); % Ïðîâåðêà ââåë ëè ïîëüçîâàòåëü â äàííûå "ïîëå äëÿ ââîäà" if isempty(FcnName) % Åñëè çíà÷åíèå ïåðåìåííîé FcnName ïóñòîå, òîãäà ïîëó÷àåì % íàçâàíèå ôóíêöèè èç îáúåêòà "âûïàäàþùèé ñïèñîê" FcnPop=get(handles.popupmenu_fcn,'String');
Страницы
- « первая
- ‹ предыдущая
- …
- 104
- 105
- 106
- 107
- 108
- …
- следующая ›
- последняя »