How do you use App designer to read files from a folder, list the name of the variable stored, select them and save in CSV
13 ビュー (過去 30 日間)
古いコメントを表示
I need an app that is able to look inside a .mat file, list the variable stored in there, select the ones that needs to be and save them in a directory tht needs to be selected too. It is a workplace were not everybody are able to use matlab. I was thinking at an easy way to do that.
0 件のコメント
回答 (1 件)
Shreeya
2024 年 2 月 27 日
Hello
To load mat files and perform operations on them using the app designer, you can use, for example, the button component and define a callback function for a click event. Load the mat file as an app property as follows:
% Button pushed function: Button
function ButtonPushed(app, event)
app.file = load('file.mat');
end
Further, you can implement the other required functionalities in the callback functions of same/other components which can access the file contents using the app.file property. Refer to the following link to learn more:
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!