Alternative to Using UITable to Display Tables in App Designer

조회 수: 6 (최근 30일)
John
John 2019년 5월 30일
답변: Eric Delgado 2022년 9월 20일
Hello, I'm trying to make a button in app designer display a relatively large table. I tried using UITable at first, but scrolling in any direction causes the table to lag pretty badly. I tried instead to have the table displayed in the workspace variables window using,
openvar('dataTable');
which sort of works, but when the table is updated there's no changes made in the variables window. I believe the problem is that the workspace needs to be refreshed by right clicking the workspace and selecting "refresh" for any changes to display. Is there a command for refreshing the workspace like this?
Are there also any better alternatives for displaying larger tables using app designer other than UITable?
Thanks

답변 (1개)

Eric Delgado
Eric Delgado 2022년 9월 20일
You must use uitable instead of openvar in this "App Designer world". In this world, openvar is going to be useful in debug mode only. If you are packing your app as standalone apps, for example, openvar will not work.
But... if you wanna work only in Matlab IDE, you can call assignin on every change of your data, sending to workspace base your table (and it will update your data automatically in openvar view).

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by