Export cell or structures to a file

1 view (last 30 days)
Marisa
Marisa on 6 May 2017
Commented: Marisa on 8 May 2017
Hi, I have a problem in exporting a data base from matlab to a file. I have a complex variable, basically it is a cell composed by several structures (each structure contain several features) and I need to export that to a csv or excel file. Can Someone help me???
  2 Comments
Stephen23
Stephen23 on 7 May 2017
Would it be possible to store that data in a .mat file? Many other programs are able to read and write .mat files, and this would be a simple solution.
Marisa
Marisa on 8 May 2017
Actually I store it in a .mat file but when I create the standalone executable the created file can no longer be accessed. I try to open it but it is empty and I do not know why

Sign in to comment.

Answers (1)

Jan
Jan on 8 May 2017
There is no standard way to export a cell or struct to Excel. It depends on the data structure in Matlab and on how exactly the Excel file must look like. You have to determine the layout of the needed file at first.
The actual answer is: Yes, someone can help you. Please ask a specific question.
  1 Comment
Marisa
Marisa on 8 May 2017
So I have the following problem: 1) I have a variable "basedados", which is a cell composed by inside strutures as in the first image. Then, inside the basedados I have several elements (1x1struct) which once open have the information (like the second image shows), then in the last information type I have another inside structure (indice). So what I want is to create a output file with the information showed at Image 2 and also (that can be in a different sheet) the information inside the variable "indice".
<<
<<
>>
>>

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!