% Run with Octave and Matlab and compare the graphics.
% I attach the png files of the two graphics as well.
x = [2 ; 2 ; 8 ]; % vertex x-coordinates
y = [4 ; 8 ; 4 ]; % vertex y-coordinates
c = [0 ; 6 ; 4 ]; % vertex value, converted to color by colorbar/colormap
figure
patch(x,y,c)
colorbar
%
colormap(jet(5))

