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!