How should I avoid reloading data in App Designer?

1 回表示 (過去 30 日間)
Sadegh Rahimi
Sadegh Rahimi 2021 年 4 月 6 日
回答済み: Adam Danz 2021 年 4 月 6 日
Hi there,
I wrote Matlab code to count spike trains in EEG data (from EDF files), and it works fine, and I would like to make a graphical user interface for it, letting my colleagues work with it without MATLAB knowledge. I am new with App Designer, and I made a very primary version of the app (attached photo); however, for checking the EEG signal in each step (Draw the raw data, Plot the signal without artifact, and finally the signal with annotated spikes) I have to reload the data, which is time-consuming. Is there any way to load data once in the app (for example after clicking on Draw it) and for the next steps, using the same database and not reloading it several times? I think it would be possible to save the database first on MATLAB workspace and afterward load it from there; however, I am afraid that on the computers without MATLAB (only with MATLAB Runtime) it won't work fine.
Thanks!

採用された回答

Adam Danz
Adam Danz 2021 年 4 月 6 日
After loading the data, store the data as a property of the app.
If the property is empty, that indicates that you need to load the data (hint: isempty).
Also see

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEEG/MEG/ECoG についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by