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".
<<
<<
>>
>>

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by