필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
sebastian marin quiceno
sebastian marin quiceno 2023년 11월 23일
댓글: sebastian marin quiceno 2023년 11월 23일
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
sebastian marin quiceno 2023년 11월 23일
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