How to present the content of a field in a program?
I want to present the variables and their value from a structure in a program, just for information for the users.
Let’s say:
a.a=234.5;
a.b=444;
a.s=’This is an example’;
a
if I run this code in the command window, I get the answer:
a =
struct with fields:
a: 234.5
b: 444
s: ‘This is an example’
I want to reproduce this answer and put it in a text window in my program. I could not figure out how to do that.
Thanks for any help!I want to present the variables and their value from a structure in a program, just for information for the users.
Let’s say:
a.a=234.5;
a.b=444;
a.s=’This is an example’;
a
if I run this code in the command window, I get the answer:
a =
struct with fields:
a: 234.5
b: 444
s: ‘This is an example’
I want to reproduce this answer and put it in a text window in my program. I could not figure out how to do that.
Thanks for any help! I want to present the variables and their value from a structure in a program, just for information for the users.
Let’s say:
a.a=234.5;
a.b=444;
a.s=’This is an example’;
a
if I run this code in the command window, I get the answer:
a =
struct with fields:
a: 234.5
b: 444
s: ‘This is an example’
I want to reproduce this answer and put it in a text window in my program. I could not figure out how to do that.
Thanks for any help! matlab, fields, structures MATLAB Answers — New Questions