MATLAB: Converting RGB value to wavelength

colorrgb to wavelengthspectrum

Hello everybody I extracted RGB values per pixel from an image for a certain area which is white . is there a way to convert these value to wavelength and get a plot of intensity as a function of wavelength ? Thanks
Related Question