Azzera filtri
Azzera filtri

Data is not graphed in the app.UI.Axes of app designer

2 visualizzazioni (ultimi 30 giorni)
Hello, I have some data organized in two matrices, one matrix that stores the time in one column and another matrix that stores the information of another variable in 2 columns, to give an example, which would be "NumG".
With this for what I want to do is first graph a column with respect to time, and then in the next cycle graph the following data. What happens is that the graph is made but in Matlab, not in the UI.Axes that I have created in app designer.
Graph in matlab:
App designer, this is app.UIAxes, there is nothing
  2 Commenti
Walter Roberson
Walter Roberson il 23 Nov 2023
That cannot be your complete code. You are plotting one line at a time, but you have two lines on your plot, so your actual code must have a hold statement somewhere.
You should try
xlim(app.UIAxes, 'auto')
ylim(app.UIAxes, 'auto')
sebastian marin quiceno
sebastian marin quiceno il 23 Nov 2023
Somehow matlab was executing the scripts that it had saved in matlabdrive and not the ones that were written within the appdesigner code, I added the code that you recommended and created the functions within a button and with that it graphed me in the UI.Axes, thank you so much.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Specifying Target for Graphics Output in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by