0

我有两个功能main.mpre.m一个 GUI,axes3一个pushbutton.

我想在我axes3的 GUI 中显示 9 个值,但我在 position 处只看到一个值i=3 and j=3

function pushbutton1_Callback(hObject, eventdata, handles)
main(handles);

function main(handles)
pre(handles);
end

function pre(handles)
k=1;

for i=1:3
    for j=1:3
        plot(handles.axes3,i,j,'*','color',[0,1,0],'MarkerSize',8);
        hold on;
        set(get(handles.axes3,'Title'),'String',['Number of Iterations= ',num2str(k)]);
        set(get(handles.axes3,'XLabel'),'String','Number of Comlpeted Tours');
        set(get(handles.axes3,'YLabel'),'String','MIN of Lenght of Tours');
        set(handles.axes3,'XLim',[1 3]);
        set(handles.axes3,'YLim',[1 3]);
    end
    hold on;
end
4

0 回答 0