Error When Attempting to Publish MATLAB Script

조회 수: 5 (최근 30일)
Brandon
Brandon 2021년 2월 8일
답변: Aniket 2025년 5월 7일
Greetings,
When I try to attempt to publish my MATLAB script I receive the following error.
Error using publish
The output file
"C:\Users\15098\Documents\MATLAB\html\AA532HW3.pdf"
is not writable.
Error in mdbpublish (line 55)
outputPath = publish(file, options);
Error using open (line 50)
NAME must be a character vector or string
scalar.
Other threads related to this problem did not have the remedy for my problem.
  댓글 수: 4
Cristian Miculas
Cristian Miculas 2022년 1월 19일
Have you managed to solve this issue? I'm facing it now... Cannot see any clear solution online.
Richard Quist
Richard Quist 2022년 2월 26일
If the specified PDF file is already opened in another application (Acrobat, Acrobat Reader, ...) then it may be "locked" preventing it from being overwritten.
If that's not the case then you might check whether you can create a file in that output location outside of MATLAB.

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

답변 (1개)

Aniket
Aniket 2025년 5월 7일
As mentioned by Richard, if the PDF file is already opened in another application like Acrobat, then the file is not writable, and hence can not be overwritten.
Kindly ensure that the PDF file is closed before re-publishing. If that is not possible, consider changing system default PDF viewer to a browser based viewer (Edge, Chrome, ...)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by