How do I retrieve data from a .mat file into a UItable within App Designer?

4 次查看(过去 30 天)
Based on my table, there are titles that are already set within the application, but I'm not able to load a file and save the file. The application is able to read the file, but I don't know how to save the data and I can't display the information in the UItable. If you have anymore question, I'll provide comments.
  2 个评论
dpb
dpb 2023-7-25
W/o the code it's impossible to diagnose -- certainly one can read/write .mat files in an AppDesigner app and MATLAB tables can (with some limitations) be used directly to populate the uitable; there's <even an example that uses a uifigure as the container>
Pull the pertinent pieces of the app that don't seem to work and make standalone demo to upload -- doing so may have the side benefit of showing you where your logic/syntax errors are and solve the problem on your own.

请先登录,再进行评论。

采纳的回答

Raghav
Raghav 2023-7-31
Hi Sean,
I understand that you are facing difficulty in loading the file and saving it’s data. Also, you are unable to display the data in the UI of the App Designer.
To read the data, you can use “readtable” function and for saving the data, you can use “writetable” function and for displaying it please refer to the example titled “Display Table Data” in the below documentation:
Also, to know about the usage of the “readtable” function and “writetable” function, please refer to the below documentations:
Hope it helps.
Best Regards,
Raghav Bansal
MathWorks Technical Support

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by