Effacer les filtres
Effacer les filtres

How to interpolate colors and plot as an image?

3 vues (au cours des 30 derniers jours)
Itzik Ben Shabat
Itzik Ben Shabat le 3 Août 2015
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

Réponses (0)

Catégories

En savoir plus sur Colormaps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by