About Plotting using App designer

2 Ansichten (letzte 30 Tage)
Utku Agtas
Utku Agtas am 5 Aug. 2020
Kommentiert: Utku Agtas am 6 Aug. 2020
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.

Akzeptierte Antwort

Mohammad Sami
Mohammad Sami am 6 Aug. 2020
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

Weitere Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by