From: Samoline1 Linke on
Is it possible that I highlight the first and last point of the scatter plot?

This would help me in checking from which point my scattter plot starts and where does it end.
From: Herve on
"Samoline1 Linke" <maganatewoman(a)yahoo.com> wrote in message <hk66ji$2bh$1(a)fred.mathworks.com>...
> Is it possible that I highlight the first and last point of the scatter plot?
>
> This would help me in checking from which point my scattter plot starts and where does it end.

If you have two vectors x and y of size n

Then you could do

scatter(x(1),y(1),'r')
hold on
scatter(x(2:n-1),y(2:n-1),'b')
hold on
scatter(x(n),y(n),'r')

First and last points will be in red while the others will be in blue.
From: Samoline1 Linke on
"Herve " <michaud_rene(a)yahoo.fr> wrote in message <hk67jg$48v$1(a)fred.mathworks.com>...
> "Samoline1 Linke" <maganatewoman(a)yahoo.com> wrote in message <hk66ji$2bh$1(a)fred.mathworks.com>...
> > Is it possible that I highlight the first and last point of the scatter plot?
> >
> > This would help me in checking from which point my scattter plot starts and where does it end.
>
> If you have two vectors x and y of size n
>
> Then you could do
>
> scatter(x(1),y(1),'r')
> hold on
> scatter(x(2:n-1),y(2:n-1),'b')
> hold on
> scatter(x(n),y(n),'r')
>
> First and last points will be in red while the others will be in blue.

--------------------------------------------------------------------------------------------------------

yes it looks good. Actually I have a big matrix having 20 columns. I want to make scatter plots of these columns against each other. I have found that 'gplotmatrix' is one of the best solutions representing scatter plots of so many vectors.
Is it possible that I could include the commands you told me into gplotmatrix? so that I could get highlighted start and end points in scatter plots made through gplot`?

I shall be highly thankful for your help!
From: Herve on
"Samoline1 Linke" <maganatewoman(a)yahoo.com> wrote in message <hk689u$h80$1(a)fred.mathworks.com>...
> "Herve " <michaud_rene(a)yahoo.fr> wrote in message <hk67jg$48v$1(a)fred.mathworks.com>...
> > "Samoline1 Linke" <maganatewoman(a)yahoo.com> wrote in message <hk66ji$2bh$1(a)fred.mathworks.com>...
> > > Is it possible that I highlight the first and last point of the scatter plot?
> > >
> > > This would help me in checking from which point my scattter plot starts and where does it end.
> >
> > If you have two vectors x and y of size n
> >
> > Then you could do
> >
> > scatter(x(1),y(1),'r')
> > hold on
> > scatter(x(2:n-1),y(2:n-1),'b')
> > hold on
> > scatter(x(n),y(n),'r')
> >
> > First and last points will be in red while the others will be in blue.
>
> --------------------------------------------------------------------------------------------------------
>
> yes it looks good. Actually I have a big matrix having 20 columns. I want to make scatter plots of these columns against each other. I have found that 'gplotmatrix' is one of the best solutions representing scatter plots of so many vectors.
> Is it possible that I could include the commands you told me into gplotmatrix? so that I could get highlighted start and end points in scatter plots made through gplot`?
>
> I shall be highly thankful for your help!


I don't have the "statistics toolbox" so I don't have the "gplotmatrix" command but I guess that you should be able to use "gplotmatrix"command in the same way as I have used the "scatter" command.

Good luck !
From: Samoline1 Linke on
"Herve " <michaud_rene(a)yahoo.fr> wrote in message <hk69dk$reb$1(a)fred.mathworks.com>...
> "Samoline1 Linke" <maganatewoman(a)yahoo.com> wrote in message <hk689u$h80$1(a)fred.mathworks.com>...
> > "Herve " <michaud_rene(a)yahoo.fr> wrote in message <hk67jg$48v$1(a)fred.mathworks.com>...
> > > "Samoline1 Linke" <maganatewoman(a)yahoo.com> wrote in message <hk66ji$2bh$1(a)fred.mathworks.com>...
> > > > Is it possible that I highlight the first and last point of the scatter plot?
> > > >
> > > > This would help me in checking from which point my scattter plot starts and where does it end.
> > >
> > > If you have two vectors x and y of size n
> > >
> > > Then you could do
> > >
> > > scatter(x(1),y(1),'r')
> > > hold on
> > > scatter(x(2:n-1),y(2:n-1),'b')
> > > hold on
> > > scatter(x(n),y(n),'r')
> > >
> > > First and last points will be in red while the others will be in blue.
> >
> > --------------------------------------------------------------------------------------------------------
> >
> > yes it looks good. Actually I have a big matrix having 20 columns. I want to make scatter plots of these columns against each other. I have found that 'gplotmatrix' is one of the best solutions representing scatter plots of so many vectors.
> > Is it possible that I could include the commands you told me into gplotmatrix? so that I could get highlighted start and end points in scatter plots made through gplot`?
> >
> > I shall be highly thankful for your help!
>
>
> I don't have the "statistics toolbox" so I don't have the "gplotmatrix" command but I guess that you should be able to use "gplotmatrix"command in the same way as I have used the "scatter" command.
>
> Good luck !


-----------------------

I will check it out and would let you know ...Thanks for ur time!!!!
 |  Next  |  Last
Pages: 1 2
Prev: v as in asv?
Next: graph using scope and workspace