ВУЗ:
Составители:
9 Ëèñòèíã ïðîãðàììû 111
else
for k=1:length(Selection)
if Selection(k)==1
My_Color=uisetcolor;
else
uisetcolor(handles.myplot{Selection(k)-1});
end;
end
end
%
function Menu_Width_Callback(hObject, eventdata, handles)
% hObject handle to Menu_Width (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
ListString={'NewGraphic'};
if isfield(handles,'myfun')
ListString=[ListString,handles.myfun];
end
dlg_title = 'Input Line Width ';
CValWidth=inputdlg( ListString,dlg_title);
for k=1:length(CValWidth)
ValWidth=str2num(CValWidth{k});
if ValWidth>0 & k>1
set(handles.myplot{k-1},'LineWidth',ValWidth);
elseif ValWidth>0 & k==1
handles.ValWidth= ValWidth;
guidata(hObject, handles);
end
end
