Rank: 16609 based on 0 downloads (last 30 days) and 0 files submitted
photo

John Hughes

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by John
Updated File Comments Rating
13 Jan 2009 Centered coordinate axes in 2D plots Takes the current coordinate axes (with ticks and labels) and draws new ones centered at the origin. Author: Johan Carlson

Pretty decent. Doesn't work in cases where you have multiple axes, as you sometimes get with

plot(foo)
hold on
plot(bar)
plot(baz)
hold off

But otherwise, it works pretty darned well. One suggested improvement: allow an option for what "center" to use, so that I could have x- and y-axes intersecting at (-1, 2), if I so chose.

Contact us at files@mathworks.com