how to export .mat file into excel sheet
    조회 수: 6 (최근 30일)
  
       이전 댓글 표시
    
i have created a mat file using magic function as follows: Z= magic(4)
Z =
    16     2     3    13
     5    11    10     8
     9     7     6    12
     4    14    15     1
W= sign(Z)== -1
W =
     0     0     0     0
     0     0     0     0
     0     0     0     0
     0     0     0     0
>> xlswrite('sample.xlsx',W)
Error using xlswrite (line 220) Invoke Error, Dispatch Exception: Source: Microsoft Office Excel Description: Microsoft Office Excel cannot access the file 'C:\Program Files\MATLAB\R2012a\bin\644A5000'. There are several possible reasons:
• The file name or path does not exist. • The file is being used by another program. • The workbook you are trying to save has the same name as a currently open workbook. Help File: C:\Program Files\Microsoft Office\Office12\1033\XLMAIN11.CHM Help Context ID: 0
how to save mat file generated by sign function in excel Am i doing right?
댓글 수: 0
채택된 답변
  Jan
      
      
 2016년 2월 11일
        The error message means, that you do not have write permissions to the folder 'C:\Program Files\MATLAB\R2012a\bin\ . And it is a very good idea not to polute this folder with data files.
Better write to a well defined location, e.g.:
xlswrite(fullfile(tempdir, 'sample.xlsx'), W)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

