What is the best way to send data from structures to the app designer?
18 views (last 30 days)
Show older comments
JOSEPH BAIL
on 18 Jul 2022
Commented: JOSEPH BAIL
on 18 Jul 2022
I am trying to display data that I've processed and stored in structure array. To accomplish this, I want to send the entire structure array into the app designer and populate the GUI with information from the structure array. I am just not sure the best way to transfer so much data to the app designer.
I have attached the GUI that I would like to use to display my data. An example of how I would like to use this GUI is as described: If I check the box fresh and uncheck the box frozen, I would like the code to loop through each structure in my structure array (if test(1).condition == 'fresh', then plot the stress data).

I am still gaining familiarity with structures. If I had all my data stored in an Excel sheet, I would simply read in the data in the app designer. However, I would like to keep the data stored in a structure array, and I am not sure of the most efficient way to transfer data stored in this way.
I appreciate any help or resources you could point me to.
Thank you.
0 Comments
Accepted Answer
Image Analyst
on 18 Jul 2022
You could wrangle the data somehow into a structure array and then save it to a .mat file. Then your .mlapp file can read in the .mat file to a variable in your program. How you get the data into this structure array depends on what fields you want the structure to have and what your input data is. Do you have a second program that creates or collects the data, and then you want to "send" it to your AppDesigner app? Attach your data and desired fields of the structure if you need anymore help.
More Answers (0)
See Also
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!