About Plotting using App designer

1 回表示 (過去 30 日間)
Utku Agtas
Utku Agtas 2020 年 8 月 5 日
コメント済み: Utku Agtas 2020 年 8 月 6 日
Hi,
I designed an app using app designer for plotting my functions. However the functions are displaying plots in a figure. I want to display them using UIaxes. Is there a way for doing this without changing the functions? Because the function is in a seperate .m file.

採用された回答

Mohammad Sami
Mohammad Sami 2020 年 8 月 6 日
You have to edit the function and provide an additional input to the function. The added input variable is the uiaxes that you want the plot to go on.
function plotfunction(arg1,arg2, plotaxes)
%.....
plot(plotaxes,arg1,arg2)
end
% then you can call it like this
function someappfunction(app)
% ....
plotfunction(X,Y,app.uiaxes);
end
  1 件のコメント
Utku Agtas
Utku Agtas 2020 年 8 月 6 日
Thanks!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by