How do I retrieve data from a .mat file into a UItable within App Designer?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
dpb
il 25 Lug 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.
Risposta accettata
Raghav
il 31 Lug 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!