Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: how to plot two vectors as two columns next to each other
Replies: 7   Last Post: Sep 26, 2012 1:01 AM

 Messages: [ Previous | Next ]
 Matt Posts: 10 Registered: 9/17/12
Re: how to plot two vectors as two columns next to each other
Posted: Sep 25, 2012 10:47 PM

> On Wednesday, September 26, 2012 1:47:08 PM UTC+12, Matt wrote:
> > dpb <none@non.net> wrote in message <k3tmkl\$p0i\$1@speranza.aioe.org>...
> >

> > > On 9/25/2012 7:55 PM, Matt wrote:
> >
> > > > I have 2 number vectors of length 10. I want to display them side by
> >
> > > > side with a heading of each right above them. I want it to pretty much
> >
> > > > make it look like a table with two values side by side. Any simple way
> >
> > > > to do this?
> >
> > >
> >
> > > Probably if I could figure out what it really is you wanted... :)
> >
> > >
> >
> > > What is a plot of two columns? What about
> >
> > >
> >
> > > doc bar % maybe?
> >
> > >
> >
> > > --
> >
> > O shoot, I meant to say display not plot

>
> Here's one way:
> fprintf(1,'%f\t%f\n',[Vector1 Vector2]');
>
> Note the transpose of the matrix formed by the two vectors.

hmm this did something close. lets say I have z=[1 2 3 4 5 6 7 8 9 10] and b = [.1 .2 .3 .4 .5 .6 .7 .8 .9 1]

it gives me this:
1 2
3 4
5 6
7 8
9 10
.1 .2
.3 .4
.5 .6
.7 .8
.9 1

i want all z be in column 1 and b be in column two.

Date Subject Author
9/25/12 Matt
9/25/12 dpb
9/25/12 Matt
9/25/12 dpb
9/25/12 Derek Goring
9/25/12 Matt
9/25/12 dpb
9/26/12 Derek Goring