Getting better high resolution images!

조회 수: 319 (최근 30일)
manish sharma
manish sharma 2012년 11월 25일
편집: Ali Hussein Numan 2023년 11월 18일
Hi,
I am using the "plot" command to generate certain graph. I save it in ".tiff" format.
However, the image looks blurry when I copy it to MS Word and especially when I take a print-out (may be because of poor resolution).
Is it possible to produce a better "high resolution" image?
Thanks!
  댓글 수: 2
Anna Nagle
Anna Nagle 2017년 10월 6일
If I have time, I save as eps and then use Photoshop or Gimp to crop it and save it in another format if needed. If I don't have time, I save as png since I can import that directly into Word and crop it there if necessary.
Shubhranshu Kumar Tiwary
Shubhranshu Kumar Tiwary 2022년 12월 10일
For improving images in word go to Word Options> Advanced>Image Size and Quality and check "Do not compress image in file" and edit the image dpi from there. It resulted in better image quality for my Word Documents. I have tried it in Word 2016 and later versions.

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

채택된 답변

bym
bym 2012년 11월 25일

추가 답변 (6개)

Adri van Nieuwkerk
Adri van Nieuwkerk 2018년 6월 5일
I was looking for something similar and found this answer on stackoverflow. Without having to download a separate function to do this try printing the image using print. Adjust the dpi, set at 300, to the resolution you want. The higher the dpi, the larger the file size.
print(gcf,'foo.png','-dpng','-r300'); *// 300 dpi
  댓글 수: 4
Opara Benjamin
Opara Benjamin 2021년 8월 14일
Awesome. Thank you.
Image Analyst
Image Analyst 2021년 8월 14일
@Osama Arafa, @Biswabhanu Puhan, and @Osama Arafa, like I said below, "With r2020a and later, the preferred solution is to use exportgraphics() and/or copygraphics()."

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


Toshia M
Toshia M 2023년 3월 17일
편집: Toshia M 2023년 3월 17일
There are two new functions in R2020a that solve this problem. Use exportgraphics to export the contents of a figure to a file. You can specify the file format, resolution, and many other options. For example, create a plot and save it as a 300 dpi TIFF file:
plot([0 4 2 6 3])
ax = gca;
exportgraphics(ax,"myplot.tif","Resolution",300)
To copy the the plot to the clipboard instead, use copygraphics. It has the same resolution option as exportgraphics has, and you can paste it right into Word without having to save a separate file.
copygraphics(ax,"Resolution",300)

Image Analyst
Image Analyst 2012년 11월 25일
  댓글 수: 1
manish sharma
manish sharma 2012년 11월 26일
Wow. Thanks a lot. It worked.
I have a doubt: Although the image produced is good in resolution but it takes a lot of space in MS Word doc (meaning it occupies half of my A4 page). If I resize it in word, it again degrades the image.
Is their any solution to resize the image to smaller scale maintaining the high resolution?
Thanks again for helping me out!

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


Image Analyst
Image Analyst 2021년 8월 13일
With r2020a and later, the preferred solution is to use exportgraphics() and/or copygraphics().

Shubhranshu Kumar Tiwary
Shubhranshu Kumar Tiwary 2022년 12월 10일
For improving images in word go to Word Options> Advanced>Image Size and Quality and check/uncheck "Do not compress image in file" and edit the image dpi from there. It resulted in better image quality for my Word Documents. I have tried it in Word 2016 and later versions.

Ali Hussein Numan
Ali Hussein Numan 2023년 11월 18일
편집: Ali Hussein Numan 2023년 11월 18일
Hi
Why the resolution of figures when using plot command is higher than print to figure of simulink scope. Note that in both cases copy figure option are used. It that can be considered as drawback especially when there are too many data's in simulink which can not easily transfered into workspace for plotting using command option.Why MathWork does not resolve this problem.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by