Help regarding Publish to pdf in matlab.

9 visualizaciones (últimos 30 días)
Axel Jonsson
Axel Jonsson el 16 de Dic. de 2020
Editada: Abhishek Gupta el 22 de Dic. de 2020
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 comentario
Matt Gaidica
Matt Gaidica el 17 de Dic. de 2020
Editada: Matt Gaidica el 17 de Dic. de 2020
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')

Iniciar sesión para comentar.

Respuestas (1)

Abhishek Gupta
Abhishek Gupta el 22 de Dic. de 2020
Editada: Abhishek Gupta el 22 de Dic. de 2020
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.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by