How to print figures correctly in a live script

16 vues (au cours des 30 derniers jours)
Scott
Scott le 10 Jan 2024
Commenté : Scott le 10 Jan 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 commentaires
VINAYAK LUHA
VINAYAK LUHA le 10 Jan 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 le 10 Jan 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.

Connectez-vous pour commenter.

Réponses (1)

Hassaan
Hassaan le 10 Jan 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.

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by