GUI callback question

5 ビュー (過去 30 日間)
Frank
Frank 2011 年 10 月 27 日
Is it possible to call a function in one GUI from another GUI (I'm using GUIDE)?
eg...
GUI1 -> function plot_in_GUI2(x,y)
save('temp.mat','x','y') %Save variables
run(GUI2, plot_xy) %Call the GUI2 function
end
where
GUI2 -> function plot_xy
load('temp.mat') %Load data
plot(x,y) %Plots the data
end

回答 (1 件)

Jan
Jan 2011 年 10 月 27 日
You can move the source of function plot_xy into an individual file. Then this function can be called from anywhere. Using a unique name is recommended.

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by