How to print figures correctly in a live script

16 visualizaciones (últimos 30 días)
Scott
Scott el 10 de En. de 2024
Comentada: Scott el 10 de En. de 2024
I'm attempting to print the code plus one figure of a live script. Unfortunately, the figure is running off the right side of the page.
Any suggestions on how to get this figure to fit? I've attached the mlx file and pdf output.
  2 comentarios
VINAYAK LUHA
VINAYAK LUHA el 10 de En. de 2024
Hi Scott,
I ran your code at my end on MATLAB R2023a and it worked perfectly fine. Could you be more specific regarding the version of MATLAB used and the how you are exporting the .mlx to .pdf. I've attached the generated pdf file, in case you need the doc immediately.
Thanks
Scott
Scott el 10 de En. de 2024
@VINAYAK LUHA, thanks for your response! I did discover that I could export the live script to PDF and it looks good (attachment). What did not work was printing the live script, either to PDF or to hard copy.
I'm using MATLAB R2023b on macos 14.2.1. I'm going to check different print drivers to see if that makes a difference.

Iniciar sesión para comentar.

Respuestas (1)

Hassaan
Hassaan el 10 de En. de 2024
Working on MATLAB r2023b. Thank you.
---------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
Professional Interests
  • Technical Services and Consulting
  • Embedded Systems | Firmware Developement | Simulations
  • Electrical and Electronics Engineering
Feel free to contact me.

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by