필터 지우기
필터 지우기

Write cell arrays to matlab

조회 수: 2 (최근 30일)
Bas
Bas 2015년 9월 17일
댓글: Bas 2015년 9월 17일
Hi,
I have a matrix A containing 1x24 cells. Each cell contains data cx1, with c being variable. So, A{1} is 2360x1, while A{2} is 2344x1 etc.
Now I want each cell to be written in a separate sheet in excel. How can I do this? I tried several approaches but get errors all the time..
Anyone knows how to do this?

채택된 답변

Walter Roberson
Walter Roberson 2015년 9월 17일
for K = 1 : length(A)
thissheetname = sprintf('Sheet#%02d', K);
xlswrite('YourFile.xls', A{K}, thissheetname);
end
  댓글 수: 1
Bas
Bas 2015년 9월 17일
Thanks this works :)

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

추가 답변 (0개)

카테고리

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