I keep getting an error when trying to run the following command from the MATLAB Fundamentals class (pg 6-11 in course notes). Doesn't writetable overwrite a file if it already exists?

조회 수: 31 (최근 30일)
writetable(standings,'EPLstandings.xlsx')
Error using writetable (line 121) Unable to save the workbook to file 'C:\EPLstandings.xlsx'. Check that write permissions are available, there is sufficient disk space, and the file can be written to or created.
  댓글 수: 1
Alexander Guillen
Alexander Guillen 2020년 3월 17일
I was having the same error. In the section in your matlab window, I selected desktop and it automatically create the folder!

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

채택된 답변

Varun Gunda
Varun Gunda 2017년 4월 3일
Try the following solution that worked for people with same issue:
After creating the two above-named folders, the MATLAB script's writetable() call now correctly creates the .xlsx file.
You have to create a folder (or two on a 64bit-windows):
(32Bit, always)
C:\Windows\System32\config\systemprofile\Desktop
(64Bit)
C:\Windows\SysWOW64\config\systemprofile\Desktop
After creating the two above-named folders, the MATLAB script's writetable() call now correctly creates the .xlsx file.
  댓글 수: 3
Jonatan Morisson
Jonatan Morisson 2017년 10월 30일
i dont understand, we just add a new folder to that directory? but i dont find any Desktop folder in my syswow64 or System32, should i make them? not a (64Bit) and (32 Bit, always)? i already did that but still got the same error
Unable to save the workbook to file 'C:\Program Files\MATLAB\MATLAB\bin\glcmfeatures.xlsx'. Check that write permissions
are available, there is sufficient disk space, and the file can be written to or created.
Steven Lord
Steven Lord 2017년 10월 30일
I recommend you avoid creating or modifying files inside your MATLAB installation. Create another directory, something like c:\mywork, and cd to that directory before saving your files.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by