11 November 2012 26 5K Report

I have 3 vectors, 2 of them represent x,y point coordinates, and the third represents the appointed values for those points.

Is it possible to plot those x,y coordinates, e.g.

plot(x,y,'.')

and then add a colorbar which will be connected to those values, where the colorbar is defined by the third vector.

Result will be a 2D line plot with gradual change in colors where the gradual change can be read from colorbar.

Similar questions and discussions