MATLAB Answers

Is it possible to import .mat files into AppDesigner?

53 views (last 30 days)
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?

Accepted Answer

Walter Roberson
Walter Roberson on 10 Jan 2017
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.

  2 Comments

John
John on 4 Apr 2017
How do you then share that data with other functions in the app? In GUIDE, I would do the following inside my callback:
load mri
handles.mriDATA = mri
What is the equivalent in appDesigner?
Mylena Reis
Mylena Reis on 8 Nov 2017
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'

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!