From: Md. Niazul on
i have to generate a plot of power spectrum using matlab. As power increases, the color of the plot will gradually go from green to red. how can i do that?pls help.thanx
From: Walter Roberson on
Md. Niazul wrote:
> i have to generate a plot of power spectrum using matlab. As power
> increases, the color of the plot will gradually go from green to red.
> how can i do that?pls help.thanx

At each place that you want to change the color of the line, you will
have to start a new line.

Alternately, in theory you could do a surface plot using a constant y
value and making z your power, and rotate the surface plot to be
perpendicular to the screen so that only the edge-on view is visible.
 | 
Pages: 1
Prev: Piano Hammer Voicing
Next: Reading from Csv File