フィルターのクリア

Load Data into GUI

1 回表示 (過去 30 日間)
Avri
Avri 2014 年 1 月 1 日
コメント済み: Walter Roberson 2017 年 4 月 9 日
I’m building a GUI that running few tests.
There is data in a mat file that need to be uploading every time the user runs a specific test.
The only way I found to load the data is to read this file,
Data = load(Theoretical_Si.mat)
The problem is that once compiling the GUI to exe, one must remember to place the mat file into the x32\x64 folder, this is a risk that for time to time disruptive the work.
Is there any “elegant” way to load the data without read the file? Can I somehow put the data into the GUI?

採用された回答

Image Analyst
Image Analyst 2014 年 1 月 1 日
Alternatively, if you're using GUIDE, yes you can put the data into the GUI. If the data are settings for various controls on the GUI, then you can set their values in GUIDE and they will be those values when it launches.
  4 件のコメント
Likhit
Likhit 2017 年 4 月 9 日
I haven't yet created the executable--but I'm planning on it. I'd like others to run the executable using the data from the original files-- but without needing the original files themselves. Is this possible?
Walter Roberson
Walter Roberson 2017 年 4 月 9 日
You can use the mcc option "-a" to add a file to the ones bundled with the .exe . Expect the file to show up in cftroot()
If you are using deploytool you can "add to project"

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2014 年 1 月 1 日
You can use the mcc option "-a" to add a file to the ones bundled with the .exe . Expect the file to show up in cftroot()

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by