How to interpolate colors and plot as an image?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Red finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!