Azzera filtri
Azzera filtri

How to interpolate colors and plot as an image?

3 visualizzazioni (ultimi 30 giorni)
Hi, I have nine points (X,Y coordinate) and the color in each point (currentl in three vectors). I wish to show an image of the interpolation between the colors. how do i do that? so far I got
if true
% code
[X, Y] = meshgrid([-1 0 1], [-1 0 1]);
red_dist= [0 0.5 0; 0.5 1 1 ;0 1 1 ];
green_dist = [0 1 1; 1 1 1 ;1 1 0 ];
blue_dist = [1 1 0; 1 1 0.5;0 0.5 0 ];
end
thanks

Risposte (0)

Categorie

Scopri di più su Colormaps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by