Alternative to Using UITable to Display Tables in App Designer

9 visualizaciones (últimos 30 días)
John
John el 30 de Mayo de 2019
Respondida: Eric Delgado el 20 de Sept. de 2022
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

Respuestas (1)

Eric Delgado
Eric Delgado el 20 de Sept. de 2022
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).

Categorías

Más información sobre Workspace Variables and MAT-Files en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by