How do I retrieve data from a .mat file into a UItable within App Designer?
4 views (last 30 days)
Show older comments
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 Comments
dpb
on 25 Jul 2023
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.
Accepted Answer
Raghav
on 31 Jul 2023
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 Comments
More Answers (0)
See Also
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!