I have the following data:
- dataMatrix (20x210): 20 samples with 210 variables each
- wavelength: 1 row of 210 variables describing the wavelength number
- concentrations: concentration value for each sample (20 rows and 1 column)
I usually plot the data in a normal way:
plot(wavelength, dataMatrix)

But what I want is to plot and color each sample according to the concentration value taking into account the rest, color based on data. I think it is something to do with colormap. The result would be something like this:

Is there any easy way to do this using Matlab?
Thank you very much!