1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
n=getappdata(0,'n');
c=getappdata(0,'c');
WW=[];
val=1;
for i=1:n+1
WW=[WW i];
end
z=getappdata(0,'z');
z=z';
y=z(val,:);
WW(end:end+numel(y)-numel(WW))=nan;
y(end:end+numel(WW)-numel(y))=nan;
s = 40;
scatter(handles.axes1,WW,y,'MarkerEdgeColor','b','MarkerFaceColor','c','LineWidth',1.5);
grid on; |
Partager