how do i change the histogram color

for a rgb image i want to get red channel histogram in red color and 2nd channel histogram in green color and 3rd channel histogram in blue color
how do i do that
https://in.mathworks.com/matlabcentral/answers/181624-how-to-get-color-histogram-of-an-image?s_tid=answers_rc1-1_p1_MLT this is plot in above case but i want to change histogram color ,,i dont want plot

Answers (1)

bar(rand(100,1),3,'facecolor','r');

1 Comment

r_channel is satrting from -50 r_Channelblue is starting from 0 i want r_Channelblue in red color or r_channel starting from 0 axis

Sign in to comment.

Asked:

on 25 Oct 2018

Commented:

on 25 Oct 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!