MATLAB: Shifting x-axis

x axis reposiiton

Hi,
I want to shift the x-axis from the bottom to the top of a figure using the command line. I know how to do it by using the plot tools. I would like to know how to do it via the command line. Thanks

Best Answer

plot(1:10)
set(gca,'XAxisLocation','top')