Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

working on one channel at a color space

Asked by eman

eman (view profile)

on 30 Nov 2012

Hi ; I have converted RGB image to YCbCr color space using


this has three channel Y,Cb and Cr i need to work just at Y channel ,How can I do that? may you help me Thanks in advance



eman (view profile)


No products are associated with this question.

1 Answer

Answer by Walter Roberson

Walter Roberson (view profile)

on 30 Nov 2012
Accepted answer
myImageycbcr = rgb2ycbcr(myImage);
myImagey = myImageycbcr(:,:,1);

1 Comment


eman (view profile)

on 1 Dec 2012

Thank you

Walter Roberson

Walter Roberson (view profile)

Contact us