Bring Figure to main GUI and take control over that figure

4 ビュー (過去 30 日間)
SatyaPrakash Gupta
SatyaPrakash Gupta 2019 年 12 月 10 日
コメント済み: Adam Danz 2019 年 12 月 10 日
Hi,
I am one matlab GUI and some callback function. This callback function opens multiple figure when i perfrom some operation on the gui.
I would like to copy one figure to the GUI and take control over that copied figure ?
could you please do help me to guide here or can you please do write a code for me with examples.
thank you
  3 件のコメント
SatyaPrakash Gupta
SatyaPrakash Gupta 2019 年 12 月 10 日
Hello,
since my figure gets updated after the figure gets created , i.e i use gscatter to update the open figure, therefore i wont be able to copy the entire figure details.
example :
main GUI
function_call()
create_fig = figure()
ax = axes('parenet',create_fig)
new_handle = copyobj(copy_figure_name,ax)
end
function_call()
x= [1:10]
y=[1:10]
fig = figure()
scatter(x,y)
%now i would like to bring this fig into my main GUI , how can i do it ?
end
Adam Danz
Adam Danz 2019 年 12 月 10 日
In that case, the figure should be produced within the GUI axes rather than on an external figure.

サインインしてコメントする。

採用された回答

Amit
Amit 2019 年 12 月 10 日
If you wants to plot your data on GUI, you have to write the code in callback of some button from where you can control the fig. Or else you can write your code in the opening function of gui.
mtt.PNG

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by