Is it possible to import .mat files into AppDesigner?

13 ビュー (過去 30 日間)
Joshua Welsh
Joshua Welsh 2017 年 1 月 10 日
編集済み: Adi Purwandana 2023 年 2 月 10 日
I have created a Software GUI using App Designer. It however is computer intensive. To speed things up I would like the to import pre-calculated data using the specified inputs in the GUI. Is there any way of loading .mat files into App Designer?
  1 件のコメント
Bosheng Chen
Bosheng Chen 2019 年 6 月 17 日
Without using 1x1 structure

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

採用された回答

Walter Roberson
Walter Roberson 2017 年 1 月 10 日
Sure. You can insert a load() into your callback, at least to load data and objects.
If your intent is to load graphics objects, or design components (such as to load ui parts dynamically) then the answer might end up being different.
  3 件のコメント
Mylena Reis
Mylena Reis 2017 年 11 月 8 日
You can add a property for each global variable that you need. For example, if you need the variable 'A', add a property for 'A' and then call in any function as 'app.A'
Adi Purwandana
Adi Purwandana 2023 年 2 月 10 日
編集済み: Adi Purwandana 2023 年 2 月 10 日
what do you mean with add a property for A?
what if I want to call a variable from a mat file (there were many variables there)? i want to use this variable in next calculation within app designer. Thank you
here is my line:
[filename, path] = uigetfile({'*.mat', 'Text Files (*.mat)'});
data = load(filename); % inside this filename there were some variables, one of them: "longitude"
..... (?)
what I want is call a variable inside this .mat file (lets say "longitude").

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by