From: Goran Gašparac on
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
"Goran Ga&#353;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
"us " <us(a)neurol.unizh.ch> wrote in message <i2pd9c$hhj$1(a)fred.mathworks.com>...
> "Goran Ga&#353;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