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

3 ビュー (過去 30 日間)
Sean
Sean 2023 年 7 月 24 日
回答済み: Raghav 2023 年 7 月 31 日
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 件のコメント
Camilo Cárdenas
Camilo Cárdenas 2023 年 7 月 24 日
could you maybe share an example of the .mat file ?
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 Center および File ExchangeDevelop 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