help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scatter Plot Help - exporting linearly interpolated rgb values


From: Andy Buckle
Subject: Re: Scatter Plot Help - exporting linearly interpolated rgb values
Date: Thu, 15 Mar 2012 09:12:02 +0000

On 15 March 2012 04:38, octave_newbie <address@hidden> wrote:
> Octave newbie here...I have a data matrix, [X, Y, Z] where X, Y are positions
> (X and Y are each Nx1 matrix) , Z is the corresponding height.
>
> When I plot it using scatter plot, the function 'scatter' automatically
> linearly interpolates the data Z into the specified 64x3 colormap (I
> specified the 'jet' colormap), and plots the rgb values on a figure.
>
> I would like to somehow find a way to obtain the interpolated rgb values in
> matrix form. Is that possible?

Use interp2 to interpolate. You can call colormap with no arguments to
return the current colormap. Applying this to your interpolated matrix
will give you your RGB values.

-- 
/* andy buckle */


reply via email to

[Prev in Thread] Current Thread [Next in Thread]