help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: matrix graphs


From: Martin Helm
Subject: Re: matrix graphs
Date: Mon, 11 May 2009 16:32:16 +0200
User-agent: KMail/1.10.3 (Linux/2.6.27.21-0.1-default; KDE/4.1.3; x86_64; ; )

> On Sun, 2009-05-10 at 23:50 +0300, Oguz Yarimtepe wrote:
> > Hi,
> >
> > I am createing a plot as below:
> >
> > [a,b,c,d]=princomp(x);
> > plot(b)
> >
> > The resulted graohs is here: http://tinypic.com/view.php?pic=19kl1&s=5
> >
> > But i just want to plot the lines which are in blue. How can is make it?
>
> Maybe i should be more clear about it. Lets say b is a 11x48 matrix.
> When i run plot(b), i get a 2d line graph each has a different color.
> What should i do to just show the line with a spesific color?

If I understand then you want to plot a single column of the matrix b.
This can simply be done by selecting the corresponding column. For example you 
want the second column which is b(:,2) and so
plot(b(:, 2), "b-")
the second argument defines the plot color as blue line.

- mh



reply via email to

[Prev in Thread] Current Thread [Next in Thread]