Export cell or structures to a file

1 次查看(过去 30 天)
Marisa
Marisa 2017-5-6
评论: Marisa 2017-5-8
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 个评论
Stephen23
Stephen23 2017-5-7
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 2017-5-8
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

请先登录,再进行评论。

回答(1 个)

Jan
Jan 2017-5-8
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 个评论
Marisa
Marisa 2017-5-8
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".
<<
<<
>>
>>

请先登录,再进行评论。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by