easiest way to get structure to excel

조회 수: 2 (최근 30일)
James
James 2014년 4월 17일
댓글: Image Analyst 2016년 7월 18일
Hi,
I have a structure "A" that I want to export to excel for further use. "A" has the data burried a little bit in it. The best I can describe it as is when I open up "A" it looks like the following,
When I open the 1x1 struct, there is a 1x42 double matrix (for all 4 of those) titled "results".
I want to get those matricies to excel. Is there an easy way get those matricies to Excel? Even if it is a 2 step process.
Thanks.
  댓글 수: 2
Naveen Baskaran
Naveen Baskaran 2016년 7월 18일
편집: Naveen Baskaran 2016년 7월 18일
Did you finally get the answer? It would be really useful if you share
Image Analyst
Image Analyst 2016년 7월 18일
Well, he never Accepted one, but I still claim my answer would have worked. Naveen, you're welcome to go ahead and try it yourself.

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

답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 4월 17일
From your struct variable, you can create one 42x4 array A, then use xlswrite to export your data to an Excell file
xlswrite('file.xlsx',A)
  댓글 수: 3
Sara
Sara 2014년 4월 17일
Can you post exactly what A is?
Azzi Abdelmalek
Azzi Abdelmalek 2014년 4월 17일
A is your data, you have to post what A looks like, or give an example

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


Image Analyst
Image Analyst 2014년 4월 17일
Maybe try struct2table() and then writetable().

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by