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

2 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2023-11-23
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
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by