How to write a structure field to Excel?

2 views (last 30 days)
farzad
farzad on 1 May 2020
Commented: farzad on 2 May 2020
Hi all
I have a structure that one of its fields has n members, and I want to write them to an Excel in one column in rows. trying to convert this field to array,
doing :
vals = [s(1:end).name]
instead of giving me :
vals= ['a', 'b', 'c', ..]
gave:
vals= ['abcde,...']
how do I correct it ?

Accepted Answer

Adam Danz
Adam Danz on 1 May 2020
vals = {s(1:end).name};
  5 Comments
farzad
farzad on 2 May 2020
Thank you very much ! resolved

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!