How to use the same .mat files in different activities AppDesigner
1 次查看(过去 30 天)
显示 更早的评论
Hello everyone!
I'm new to AppDesigner and I'm trying to create an app where I load a raw signal, perform pre-processing and feature extraction, save this new processed signal and then perform some statistical analysis. How can I sequently use the .mat file I need, without having to load it for every action?
Thanks!
0 个评论
回答(1 个)
jonas
2020-7-10
You could put the content of the .mat file in a public property. Go to code view > select properties > add a public property.
properties (Access = public)
data = load('filename.mat')
end
You can then access the data through
app.data
2 个评论
jonas
2020-7-10
I'm not sure I follow. What is the problem? Just ask the user for the file and put it in the public property. You want the user to be able to switch between files? Just replace the content of the public property.
另请参阅
类别
在 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!