wap to display simple histogram along with Histogram Types matlab program
%working only on monochrome
clear all;
close all;
i=imread('cameraman.tif');
subplot(2,2,1);
imhist(i);
title('Simple Histogram');
subplot(2,2,2);
bar(i);
title('Bar Histogram');
subplot(2,2,3);
stem(i);
title('Stem Histogram');
subplot(2,2,4);
plot(i);
title('Plot Histogram');
O/p

.png)