% Image Conversion % Gary Embler, 05/07/01 bmpname = input('Enter name of bitmap to convert > ','s'); Pix = double(imread(bmpname,'bmp')); outname = input('Enter the name you want for the final BMP file ','s'); Pix = rgb2bayer(Pix); imwrite(uint8(Pix),outname,'bmp');