Jiro's post this week is a short one letting everyone know that one of the many new features of R2015b, which came out a couple of months ago, is the ability to make the X and Y axes go through the origin. For many years, people have provided custom functions to create this behavior. Thanks, everyone, for your contributions! If you found those useful, take a look at this new feature, as well as others in this version.
x = linspace(-pi,pi); y = sin(x); plot(x,y) ax = gca; ax.XAxisLocation = 'origin'; ax.YAxisLocation = 'origin'; grid on
Let us know what you think here.
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.