title: rgb to ycbcr conversion in matlab
body: <p>I am trying to write a function in Matlab that takes an RGB image of class unit8 and double and converts it to a YCBCR image. The transformation formula is below.</p>
  
  <p><img src="https://i.stack.imgur.com/u35da.png" alt="The transformation between YCbCr and RGB"></p>
  
  <p>I would be really thankful for any help of any kind.</p>