How to get plot to show exactly the x-axis range desired?
2 views (last 30 days)
Show older comments
Hello
My question might be a bit odd but I have used plot in matlab and obtained some figures. The ones that I have obtained look something like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/644620/image.png)
Which as it can be seen, it covers competely the x-axis and shows the x-axis only for the desired values.
Now I am plotting the same function but varying another variable
which is
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/644625/image.png)
tau1=0.01:0.01:0.10
when plotting the figure I get:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/644650/image.png)
How can I get rid of the extra space in the x-axis where my function has no values?
Thanks!
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!