Getting better high resolution images!
410 次查看(过去 30 天)
显示 更早的评论
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
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
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.
采纳的回答
更多回答(6 个)
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 个评论
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
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)
0 个评论
Image Analyst
2021-8-13
With r2020a and later, the preferred solution is to use exportgraphics() and/or copygraphics().
0 个评论
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.
0 个评论
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!