フィルターのクリア

Plot Axes From Other GUI

1 回表示 (過去 30 日間)
ken kin
ken kin 2011 年 6 月 17 日
I have a button in GUI (Figure 1) that call other GUI (Figure 2). Figure 2 have a button to show the graph in Figure 1's axes. So, What syntax that can I use?
Before, I use the syntax below to show graphic1 in Figure 1 by the button in its own figure.
aa = figure(...
'units','points',...
'position',[125 67 760 485],...
'color',[234/255 234/255 234/255],...
'menubar','none',...
'resize','off',...
'numbertitle','on',...
'name','graphic all');
% button to call graph
graphic1 = uicontrol('parent',aa,...
'units','points',...
'position',[130 5 70 16],...
'style','pushbutton',...
'string','Graph 1',...
'fontname','Arial',...
'fontweight','bold',...
'fontsize',10,...
'callback','plot(x,y)');
% and this syntax to plot in the same graph again set(aa,'currentaxes',graphic1); plot(x,y);
% may I change the 'currentaxes' so I can set the graphic1 from the syntax in other Figure ?

回答 (0 件)

カテゴリ

Help Center および File ExchangeSpecifying Target for Graphics Output についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by