Alternative to Using UITable to Display Tables in App Designer
10 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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).
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!