How to print figures correctly in a live script

15 次查看(过去 30 天)
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 个评论
VINAYAK LUHA
VINAYAK LUHA 2024-1-10
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 2024-1-10
@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.

请先登录,再进行评论。

回答(1 个)

Hassaan
Hassaan 2024-1-10
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.

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by