Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
sebastian marin quiceno
sebastian marin quiceno am 23 Nov. 2023
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 Kommentare
Walter Roberson
Walter Roberson am 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 am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Specifying Target for Graphics Output 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