matlab does not generate pdf

32 Ansichten (letzte 30 Tage)
Zeyuan
Zeyuan am 26 Aug. 2025 um 18:40
Beantwortet: Shantanu am 1 Sep. 2025 um 8:49
When I am trying to generate the pdf using the code
publish('Lab1.m','pdf')
It gives me this error:
错误使用 mlreportgen.re.internal.xml.transform.Transformer/transform
Unable to parse input file: "D:\ese 105 introduction to system engineering 电气与系统工程导
\lab1\Lab1\html\Lab1.xml".
Reason: failed to load HTTP resource
.
出错 publish
出错 publish
Please help.

Antworten (2)

Anay
Anay am 29 Aug. 2025 um 5:36
Hi Zeuyan,
You can publish to HTML, open the HTML in MATLAB or any browser and use the print to PDF option to get all the information to PDF.
Also I think you should consider updating your MATLAB to R2024b since this issue doesn’t appear for me on that version.
I hope this helps!

Shantanu
Shantanu am 1 Sep. 2025 um 8:49
Hi Zeyuan,
There seems to be no issue with the publish('Lab1.m','pdf') command in latest versions like MATLAB R2024b.
Check if the core XML component is recognized correctly on your machine, please run the following command in your MATLAB Command Window and check if XML component is recognized or not.
>> ver('xml')
Hope this information was useful.

Kategorien

Mehr zu MATLAB Report Generator finden Sie in Help Center und File Exchange

Produkte


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by