clear
clc
load('dc_top3.mat');
p=pixels';
% max=max(max(p));
% min=min(min(p));
for i=1:number_of_bands
h(:,:,i)=reshape(p(:,i),number_of_rows,number_of_columns);
norm(:,:,i)=(h(:,:,i)-min(min(h(:,:,i))))/(max(max(h(:,:,i)))-min(min(h(:,:,i))));
imwrite(norm(:,:,i),strcat(int2str(i),'.jpg'));
end