无边框保存figure图像

imshow(PAN,'border','tight','initialmagnification','fit');
set (gcf,'Position',[0,0,256,256]);
axis normal;
saveas(gca,'meanshape.bmp','bmp');

p = imread('meanshape.bmp');


先执行前三句,画个矩形然后执行后两句

你可能感兴趣的:(无边框保存figure图像)