X-axis not showing enough points
Show older comments
Hi,
I am trying to plot two data sets.
One of them ranges from -40:40 while the other ranges from -50:50.
The plots look fine when I use xlim([-40,40]) and show appropriate number of axis points on the x-axis.
However, when I use xlim([-50,50]), the plot only shows 3 points on x-axis. (please refer to the picture attached)
How can I show more points on x-axis when using xlim([-50,50]) ?
Thanks in advance.

Accepted Answer
More Answers (0)
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!