Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
axis

Subject: axis

From: mona

Date: 15 Dec, 2009 20:39:03

Message: 1 of 4

Hi all ;
I have this data:x=[ 0, .01 ,.02, .3];z=[.09 ,.08 ,.05, 0];
and y=[ 0 ,.01 ,.02 ,.3];w=[.08, .06, .02 0];
I want to plot (x,z) and plot (y,w) in same figure but my problem that I have to use x as x_axis and y as y_axis
how can I do that;
thanks

Subject: axis

From: TideMan

Date: 15 Dec, 2009 20:48:21

Message: 2 of 4

On Dec 16, 9:39 am, "mona " <iee2...@yahoo.com> wrote:
> Hi all ;
> I have this data:x=[ 0, .01 ,.02, .3];z=[.09 ,.08 ,.05, 0];
> and y=[ 0 ,.01 ,.02 ,.3];w=[.08, .06, .02 0];
> I want to plot (x,z) and plot (y,w) in same figure but  my problem   that I have to use x as x_axis and y as y_axis
> how can I do that;
> thanks

Your intention is not clear, but here is my interpretation of what you
want:
Either:
plot(x,z,y,w)
or:
plot(x,z)
hold on
plot(y,w,'r-')
hold off

Subject: axis

From: mona

Date: 16 Dec, 2009 06:44:20

Message: 3 of 4

TideMan <mulgor@gmail.com> wrote in message <2c3f08b9-908a-426d-b969-a928715778a2@g4g2000pri.googlegroups.com>...
> On Dec 16, 9:39?am, "mona " <iee2...@yahoo.com> wrote:
> > Hi all ;
> > I have this data:x=[ 0, .01 ,.02, .3];z=[.09 ,.08 ,.05, 0];
> > and y=[ 0 ,.01 ,.02 ,.3];w=[.08, .06, .02 0];
> > I want to plot (x,z) and plot (y,w) in same figure but ?my problem ? that I have to use x as x_axis and y as y_axis
> > how can I do that;
> > thanks
>
> Your intention is not clear, but here is my interpretation of what you
> want:
> Either:
> plot(x,z,y,w)
> or:
> plot(x,z)
> hold on
> plot(y,w,'r-')
> hold off

If I do that will get x as x_axis and z as y_axis
but I want
x as x_axis and y as y_axis
so how can I handle the axis
thanks

Subject: axis

From: TideMan

Date: 16 Dec, 2009 08:30:30

Message: 4 of 4

On Dec 16, 7:44 pm, "mona " <iee2...@yahoo.com> wrote:
> TideMan <mul...@gmail.com> wrote in message <2c3f08b9-908a-426d-b969-a92871577...@g4g2000pri.googlegroups.com>...
> > On Dec 16, 9:39?am, "mona " <iee2...@yahoo.com> wrote:
> > > Hi all ;
> > > I have this data:x=[ 0, .01 ,.02, .3];z=[.09 ,.08 ,.05, 0];
> > > and y=[ 0 ,.01 ,.02 ,.3];w=[.08, .06, .02 0];
> > > I want to plot (x,z) and plot (y,w) in same figure but ?my problem ? that I have to use x as x_axis and y as y_axis
> > > how can I do that;
> > > thanks
>
> > Your intention is not clear, but here is my interpretation of what you
> > want:
> > Either:
> > plot(x,z,y,w)
> > or:
> > plot(x,z)
> > hold on
> > plot(y,w,'r-')
> > hold off
>
> If I do that will get x as x_axis and z as y_axis
> but I want
> x as x_axis and y as y_axis
> so how can I  handle the axis
> thanks

You're making no sense whatever.
You said:
"I want to plot (x,z) and plot (y,w) in same figure"
which is what I showed you.
Now, you say you want to plot y on the y-axis.
What on earth are you talking about?

If you plot y on the y-axis, where do z and w get plotted?
On the x-axis or the y-axis?

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us