Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
sebastian marin quiceno
sebastian marin quiceno el 23 de Nov. de 2023
Comentada: sebastian marin quiceno el 23 de Nov. de 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 comentarios
Walter Roberson
Walter Roberson el 23 de Nov. de 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 el 23 de Nov. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by