title: intensity to RGB color convertor, matlab
body: <p>I have color vector =[0.....1]. I want to convert it to RGB code such that</p>
  
  <pre><code>color_vector =[0.....1] % o for blue, .5 for green and 1 for red
  R=255,0,0
  G=0,255,0
  B=0,0,255
  </code></pre>
  
  <p>Is there any matlab command(which I could not found) to do it or code.</p>
  
  <p>Another issue is that I want to make my own range for green color (.45-.55) all should be green color.</p>