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.
要发表评论，请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。