From: Goran Gašparac on 28 Jul 2010 09:52 Hi there, 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 plot of many dots with different colors where every color represents a value which can be read from colorbar. Cheers, Goran
From: us on 28 Jul 2010 10:02 "Goran Gašparac" <gorangas(a)gmail.com> wrote in message <i2pcm4$7p4$1(a)fred.mathworks.com>... > Hi there, > > 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 plot of many dots with different colors where every color represents a value which can be read from colorbar. > > Cheers, > Goran a hint: help scatter; us
From: Goran on 28 Jul 2010 11:00 "us " <us(a)neurol.unizh.ch> wrote in message <i2pd9c$hhj$1(a)fred.mathworks.com>... > "Goran Gašparac" <gorangas(a)gmail.com> wrote in message <i2pcm4$7p4$1(a)fred.mathworks.com>... > > Hi there, > > > > 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 plot of many dots with different colors where every color represents a value which can be read from colorbar. > > > > Cheers, > > Goran > > a hint: > > help scatter; > > us THANKS! what I need is gscatter Thanks again, cheers, Goran
|
Pages: 1 Prev: image processing for bubbles Next: I couldn't open Matlab Database toolbox? |