[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scatter Plot Help - exporting linearly interpolated rgb values
From: |
Ben Abbott |
Subject: |
Re: Scatter Plot Help - exporting linearly interpolated rgb values |
Date: |
Thu, 15 Mar 2012 10:17:50 -0400 |
On Mar 15, 2012, at 10:04 AM, octave_newbie wrote:
> Hi Ben,
> Thanks for your reply.
> When I try your code, however, all I get is an n x 1 matrix, where n is
> the number of data points. How can I get an n x 3 rgb matrix instead?
Opps. I was in a rush and didn't test that.
colors = interp1 (linspace ([caxis](1), [caxis](2), size (colormap (),
1)), colormap (), Z, 'nearest')
Ben