How to plot intensity like this?

 Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 10 Jun 2018
Edited: KALYAN ACHARJYA on 10 Jun 2018

%Do the required operation (filtered as per your question) and plot (with " hold on" a statement) in the respective plot, your question having three plot in each graph.

I=imread('flower.jpg');
im_r=I(:,:,1);
im_g=I(:,:,2);
im_b=I(:,:,3);
subplot(311),plot(mean(im_r),'r','linewidth',2);
subplot(312),plot(mean(im_g),'g','linewidth',2);
subplot(313),plot(mean(im_b),'b','linewidth',2);

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!