If I set a time interval, [0 10], and I plot something according to that time interval, plot(t, y()), then the graph will have its x-axis going all the way to 11.
It used to not do this. It used to produced a better fitting graph, but now it produces a graph with white space attached to the end of the graph between points 10 and 11.
I must have accidentally changed a setting. How do I get the plot function to best fit the graph?
If you want to make a polished plot, you almost always have to adjust the plot axis limits yourself. Some useful commands:
You your case you would probably add a line like this to your code:
Or, if you know that t is sorted (very common)