MATLAB Answers

Importing struct into app designer

14 views (last 30 days)
Alexandra Philip
Alexandra Philip on 10 Jul 2020
Answered: Matt J on 10 Jul 2020
I am having some trouble retreiving the field values of my loaded struct in app designer. I first created a Private propertty and then a function like this:
properties (Access = private)
Mystruct % Description
properties (Access = public)
methods (Access = private)
function Start(app)
I am then trying to figure out a way to extract the value within a specified field to use in a call back function such as this:
This is suppose to creat an table using the values from the fields and the rmdData.x are the actual field names from the struct.
Any suggestions so that the call back function is able to identify the fields values from the struct?

Answers (1)

Matt J
Matt J on 10 Jul 2020
The fieldnames command
Or, you could just do

Community Treasure Hunt

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

Start Hunting!