www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ResizeandSaveImageExample.m
%% Resize and Save Image % Copyright 2015 The MathWorks, Inc. %% % Read the sample image, |ngc6543a.jpg|, and the resize it to 500-by-500. A = imread('ngc6543a.jpg'); %% % Write the resized image data, |B|, to a file. %% % |imwrite| writes the file, |myNewFile.tif|, to the current folder.