- #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.

- MATLAB
- Thread starter Elemc
- Start date

- #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

MATLABdude

Science Advisor

- 1,655

- 4

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:

- Replies
- 0

- Views
- 3K