%% Write Grayscale Image to PNG
% Write a 50-by-50 array of grayscale values to a PNG file in the current folder.

A = rand(50);
imwrite(A,'myGray.png')

% Copyright 2015 The MathWorks, Inc.