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:
how to say Matlab to not scale the plot graph ?

Subject: how to say Matlab to not scale the plot graph ?

From: Patrick Diviacco

Date: 9 Nov, 2009 18:34:02

Message: 1 of 3

hi,

how can I set the scale of my plotted graph using "plot" ?

Let's say I want my graph displaying the range from 0 to 10.000 on my x axis, regardless the values of my data.

At the moment matlab scale the plot with respect to the data.

thanks

Subject: how to say Matlab to not scale the plot graph ?

From: dpb

Date: 9 Nov, 2009 19:01:36

Message: 2 of 3

Patrick Diviacco wrote:
> hi,
>
> how can I set the scale of my plotted graph using "plot" ?
>
> Let's say I want my graph displaying the range from 0 to 10.000 on my
> x axis, regardless the values of my data.
>
> At the moment matlab scale the plot with respect to the data.

doc axis

--

Subject: how to say Matlab to not scale the plot graph ?

From: Steven

Date: 9 Nov, 2009 19:10:18

Message: 3 of 3

"Patrick Diviacco" <patrick.diviacco@gmail.com> wrote in message <hd9naq$fvq$1@fred.mathworks.com>...
> hi,
>
> how can I set the scale of my plotted graph using "plot" ?
>
> Let's say I want my graph displaying the range from 0 to 10.000 on my x axis, regardless the values of my data.
>
> At the moment matlab scale the plot with respect to the data.
>
> thanks

xlim([0 10.000]);

Tags for this Thread

No tags are associated with 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