%% Resize and Save Image
% 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.
% Copyright 2015 The MathWorks, Inc.