Draw Plot spectra with gradient color by intensities

Hy!
I attemp to color a Y/X vector plot with a gradient color associated to Y variable that had negative or positive values. I would to create this plot with related colorbar legend in the same figure.
Can you suggest me ?
Many Thanks Riccardo

Question posée :

le 26 Jan 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by