1. imwrite 函数可以实现灰度图片的保存;

2.saveas 保存彩色图片

figure
imagesc(DefocusedImage{1,55})
set(gca,\’XTick\’,[]) % Remove the ticks in the x axis!
set(gca,\’YTick\’,[]) % Remove the ticks in the y axis
set(gca,\’Position\’,[0 0 1 1]) % Make the axes occupy the hole figure
saveas(gcf,\’Figure55\’,\’png\’)

版权声明:本文为faithyiyo原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/faithyiyo/p/13939895.html