用cla命令,清除坐标轴中的图形,且不关闭坐标轴。
>> help cla
cla Clear current axis.
cla deletes all children of the current axes with visible handles and resets
the current axes ColorOrder and LineStyleOrder..
cla RESET deletes all objects (including ones with hidden handles)
and also resets all axes properties, except Position and Units, to
their default values.
cla(AX) or cla(AX,'RESET') clears the single axes with handle AX.
清除所有坐标轴用clf
clf命令就可以帮你完成