Plot a figure in UIAxis AppDesigner

4 visualizaciones (últimos 30 días)
Pedro Guincho
Pedro Guincho el 12 de Oct. de 2020
Respondida: Mario Malic el 13 de Oct. de 2020
Hello! I'm new to AppDesigner and I'm having problems with ploting my figures, I think I'm missing something.
My code generates figures independently, but I want those figures to be presented on the UIAxis of my app. How can I do that? Will leave the code below.
PLOT 1:
% Button pushed function: TRAINMODELButton
function TRAINMODELButtonPushed(app, event)
load ('7 13 9 7_RF_APP.mat')
app.BaggedEnsemble; %variables of the file
app.b;
app.Yy= Y % [1x54] variable of the file
app.X=[1:1:54];
bar(app.UIAxes5, app.X, app.Yy)
My app has different Tab windows and I'm having trouble passing and storing the information from one tab to another, what is the best way of doing that?
Thank you!

Respuestas (1)

Mario Malic
Mario Malic el 13 de Oct. de 2020
Does this handle exist, I mean, is it correct
app.UIAxes5
I see no issues with your code. Passing data within the file is the best with properties, as you have already used these, if you need your property 'b', then just refer to it as
app.b

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by