There is a property of the axis called Visible . You can set Visible to off as follows:
set(gca,'Visible','off')
This is very useful if you want to place text in the figure window with respect to the borders of the figure, rather than with respect to the axes.