Help regarding Publish to pdf in matlab.

조회 수: 13 (최근 30일)
Axel Jonsson
Axel Jonsson 2020년 12월 16일
편집: Abhishek Gupta 2020년 12월 22일
Im having problem using the command publish
publish('Project.m','pdf')
When running the command im getting the error message
"Error using publish
The output directory "C:\Users\name\Documents\MATLAB\html" is not writable."
  댓글 수: 1
Matt Gaidica
Matt Gaidica 2020년 12월 17일
편집: Matt Gaidica 2020년 12월 17일
For all output directories? It's potentially a permissions issue with your folder, you might try to manually create the folder then check its properties.
options = struct('format','pdf','outputDir','C:\myPublishedOutput')

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

답변 (1개)

Abhishek Gupta
Abhishek Gupta 2020년 12월 22일
편집: Abhishek Gupta 2020년 12월 22일
Hi,
As per my understanding, you are getting an error while using the publish() function. You need to make sure that the "C:\Users\name\Documents\MATLAB\html" folder exists and you have permission to write in it.

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by