[转载]MATLAB保存生成高质量的清晰图片
http://blog.sciencenet.cn/blog-228329-574762.html
MATLAB保存生成高质量的清晰图片
saveas保存jpg格式的图像线条变粗、变模糊,整幅图片就像有一层很薄的水印盖在上面。
解决方案:
(1)其实matlab的出图都是矢量图,你就直接在‘edit’里面选择copy,然后就paste到word里面,伸缩自如,保证清晰
(2)可以试试print
如要把图保存成jpeg的格式的话,可以这样
print -djpeg -r85 jpegtest
其中,
-djpeg是格式 d表示device,jpeg是格式,
-r85 表示像素 85dpi r 表示resolution
,也就是分辨率的第一个字母
jpegtest 是文件名
也可以
print('-djpeg','-r300',Path)
或
print(gcf,'-djpeg','-r300',Path)
print( ... )
Same as above but this calls
PRINT as a MATLAB function
instead of
a MATLAB command. The difference
is only in the parenthesized
argument
list. It allows the passing of
http://blog.sciencenet.cn/blog-228329-574762.html
MATLAB保存生成高质量的清晰图片
saveas保存jpg格式的图像线条变粗、变模糊,整幅图片就像有一层很薄的水印盖在上面。
解决方案:
(1)其实matlab的出图都是矢量图,你就直接在‘edit’里面选择copy,然后就paste到word里面,伸缩自如,保证清晰
(2)可以试试print
如要把图保存成jpeg的格式的话,可以这样
其中,
-djpeg是格式
-r85
jpegtest
也可以
print('-djpeg','-r300',Path)
或
print(gcf,'-djpeg','-r300',Path)
print(
Same
a
list.
