- #1

- 9

- 0

This has got to be easy but I can't find the answer anywhere. How can I use 'plot' where the x-axis does not include the end points 0 or 5? All the examples I see are things like x=[0:0.1:5].

Thanks in advance.

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- #1

- 9

- 0

This has got to be easy but I can't find the answer anywhere. How can I use 'plot' where the x-axis does not include the end points 0 or 5? All the examples I see are things like x=[0:0.1:5].

Thanks in advance.

- #2

Science Advisor

- 1,663

- 6

If I understand correctly (i.e. you don't want any whitespace before / after your data points), you can make use of the

http://www.mathworks.com/help/techdoc/ref/axis.html

http://www.mathworks.com/help/techdoc/ref/xlim.html

Share:

MATLAB
How to plot data in MATLAB?

- Replies
- 2

- Views
- 962

- Replies
- 2

- Views
- 1K

- Replies
- 4

- Views
- 1K

- Replies
- 0

- Views
- 783

Mathematica
Extracting data from a Plot

- Replies
- 1

- Views
- 797

MATLAB
Tidying up MATLAB outputs

- Replies
- 4

- Views
- 473

- Replies
- 2

- Views
- 663

Mathematica
Plot parametricplot3d like this example

- Replies
- 2

- Views
- 660

- Replies
- 1

- Views
- 951

- Replies
- 4

- Views
- 895