move x-axis to top of matlab figure
December 5th, 2009 by Lawrence David
to move the x-axis on a figure from the bottom of your plot to the top, adjust the ‘xaxislocation’ variable of your current axis handle:
matlab>> set(gca,’XAxisLocation’,'top’)
December 5th, 2009 by Lawrence David
to move the x-axis on a figure from the bottom of your plot to the top, adjust the ‘xaxislocation’ variable of your current axis handle:
matlab>> set(gca,’XAxisLocation’,'top’)
Thank you man, it was just what i searched.
Thanks again
thanks bro,
sometimes the easiest things can not be found but you have done it really simple, thanks!!!
[...] have been handy. Blogger Stinkpot writes very brief notes on MATLAB sporadically. Items include Moving the X-axis to the top of a plot and Inserting a MATLAB matrix in to [...]
Thank you very much!
Every once in a while I search for something that I need to do in Matlab and your site keeps popping up. Thanks for posting all your useful tips!