To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
i have three component R(0-255),G(0-255),B(0-255) i draw 3 different histograms of each component of 8 bins but i need one 2-D histogram of 8 bins.
No products are associated with this question.
You mean putting them on one figure, with each component its corresponding color :
I=imread('autumn.tif'); R=imhist(I(:,:,1)); G=imhist(I(:,:,2)); B=imhist(I(:,:,3)); figure, plot(R,'r') hold on, plot(G,'g') plot(B,'b'), legend(' Red channel','Green channel','Blue channel'); hold off,