How do I retrieve data from a .mat file into a UItable within App Designer?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
dpb
le 25 Juil 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.
Réponse acceptée
Raghav
le 31 Juil 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!