export from matlab to excel
    조회 수: 2 (최근 30일)
  
       이전 댓글 표시
    
sir help me about the commad how can i export my result in to the excel file.
댓글 수: 0
답변 (3개)
  stozaki
    
 2020년 2월 1일
        
      편집: stozaki
    
 2020년 2월 1일
  
      You can use writematrix or xlswrite.
Please see following URL.
R2019a or later : writematrix
example code
M = magic(5)
writematrix(M,'M.xlsx','Sheet',2,'Range','A3:E8')
R2018b or earlier : xlswrite
exanple code
filename = 'testdata.xlsx';
A = [12.7 5.02 -98 63.9 0 -.2 56];
xlswrite(filename,A)
  Chaudhary P Patel
 2020년 2월 1일
        댓글 수: 7
  Image Analyst
      
      
 2020년 2월 1일
				Are you 100% sure you have Excel installed?  Perhaps that might cause a problem.
If you don't have Excel on that computer, use csvwrite() to write a CSV file, which can be opened by WordPad.
Why are you not upgrading to R2019b, where you can get writecell()?  It's much, much faster in my experience than xlswrite().
참고 항목
카테고리
				Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




