convert 1x1 struct mat file to xlsx

my sample.mat file has the following 1x1 structure, I need script to convert this mat file into an excel file.

2 comentarios

KSSV
KSSV el 28 de Mzo. de 2017
Why you want it in xlsx? You have it in .mat file already.
Jaya sri Sunkara
Jaya sri Sunkara el 28 de Mzo. de 2017
For some confined reasons, i need it in xlsx

Iniciar sesión para comentar.

Respuestas (1)

ES
ES el 28 de Mzo. de 2017

0 votos

First get all members of the structure using fields command.
Then iterate over the structure and write values in the excel sheet using xlswrite
If you encounter a structure of structure, do the fields again [recursive].

Etiquetas

Preguntada:

el 27 de Mzo. de 2017

Respondida:

ES
el 28 de Mzo. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by