Export data from cell matrix to excel
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
Hi
i wanto to export all the cell and their relative values contained in Ysol (it contains numerous cells) to an excel file, how can i do that?
forum2.png are the data in each one cell
forum1.png is the Ysol cell matrix view 
I have tried with 
xlswrite('datiMachlaminar.xls',YSol{:}(:));
but it gives me error
Regards
댓글 수: 2
답변 (1개)
  Aakash Mehta
      
 2020년 6월 24일
        Assuming your Ysol is looks like this.
C = {1,2,3;
     4,5,6;
     7,8,9;
     10,11,12;
     13,14,15}
You can convert it to excel file by below lines of code.
C=num2cell(cell2mat(C.'));
xlswrite('x.xlsx',C)
댓글 수: 2
참고 항목
카테고리
				Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!