Improve image quality in live script or in publish

조회 수: 9 (최근 30일)
ThorBarra
ThorBarra 2016년 9월 9일
답변: Aniket 2025년 5월 8일
Hi there, When importing image files to a live script or when including them in a published document (using the editor in earlier versions of Matlab), the quality of the graphics looks horrible. I can hardly recognize any details. A workaround in the editor was to use html code to include the image in the published file and use a high resolution image scaled down to fit the page;
<html>
<IMG SRC="../image namne.png" WIDTH=500>
</html>
Is that possible ein live scripts? Or, can I modify the import settings of images during publish or for live scripts?
  댓글 수: 1
Brian Wilson
Brian Wilson 2023년 8월 7일
https://www.mathworks.com/matlabcentral/answers/348554-how-to-include-an-image-with-original-resolution-in-a-live-script

댓글을 달려면 로그인하십시오.

답변 (1개)

Aniket
Aniket 2025년 5월 8일
I have observed that the quality of imported images in live script has increased a lot in newer versions of MATLAB.
Also, starting from R2023b, MATLAB provides an option to change figure resolution in a published document. Kindly follow the below mentioned steps:
  1. In toolstrip, navigate to Live Editor --> File --> Export --> Export to PDF
  2. Click "Show more" to expand the export options
  3. Update Figure resolution as per requirement.
  4. Alternatively, this setting can be changed via the export function input argument FigureResolution as mentioned in this documentation: https://www.mathworks.com/help/matlab/ref/export.html
I hope this answers your query!

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by