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 アカウントにサインインするか新しい MathWorks アカウントを作成します。