Thread Subject: how to change the x-scale only using command?

Subject: how to change the x-scale only using command?

From: Arthur Zheng

Date: 19 Apr, 2009 04:28:01

Message: 1 of 3

axis([xmin xmax ymin ymax]) seems to change both x and y axis scale. I only want to change x scale, what command to use?

Subject: how to change the x-scale only using command?

From: Godman

Date: 19 Apr, 2009 04:39:06

Message: 2 of 3

On 4=D4=C219=C8=D5, =CF=C2=CE=E712=CA=B128=B7=D6, "Arthur Zheng" <hzhe...@g=
atech.edu> wrote:
> axis([xmin xmax ymin ymax]) seems to change both x and y axis scale. I on=
ly want to change x scale, what command to use?

you can try "xlim"
eg.
x=3D0:10;
y=3Dx.^2;
plot(x,y)
xlim([-1.75 3.25])

Subject: how to change the x-scale only using command?

From: Arthur Zheng

Date: 19 Apr, 2009 21:56:01

Message: 3 of 3

Godman <tntuyh@163.com> wrote in message <6dccff5b-d16a-4d5d-b9d9-390c66fd4535@b6g2000pre.googlegroups.com>...
> On 4=D4=C219=C8=D5, =CF=C2=CE=E712=CA=B128=B7=D6, "Arthur Zheng" <hzhe...@g=
> atech.edu> wrote:
> > axis([xmin xmax ymin ymax]) seems to change both x and y axis scale. I on=
> ly want to change x scale, what command to use?
>
> you can try "xlim"
> eg.
> x=3D0:10;
> y=3Dx.^2;
> plot(x,y)
> xlim([-1.75 3.25])


thank you! It works!

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
axis Arthur Zheng 19 Apr, 2009 00:30:06
rssFeed for this Thread

Contact us at files@mathworks.com