using publish to a pdf: wrapping text

I am trying to use publish to produce pdfs, but the text I am printing, using fprintf, does not wrap, so the lines continue off of the page.
I realize I can format the fprintf to contain new lines using '\n', but I am wondering if there is a way to make the text automatically wrap when publishing?
Will

Respuestas (1)

Aniket
Aniket el 7 de Mayo de 2025

0 votos

As of R2024b, the output from fprintf is automatically wrapped when publishing PDF. Kindly upgrade to the latest version of MATLAB.

Categorías

Preguntada:

el 5 de Dic. de 2011

Respondida:

el 7 de Mayo de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by