Help regarding Publish to pdf in matlab.
Show older comments
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 Comment
Matt Gaidica
on 17 Dec 2020
Edited: Matt Gaidica
on 17 Dec 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')
Answers (1)
Abhishek Gupta
on 22 Dec 2020
Edited: Abhishek Gupta
on 22 Dec 2020
0 votes
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.
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!