遵守当前hold状态,与 MATLAB®绘图函数行为一致。 functionmyPlot3D(x,y,z)% Call newplot to get the axes handlecax = newplot;% Save current hold statehold_state = ishold;% Call plotting ...
This MATLAB function sets the axes hold state to on, which retains plots in the current axes so that new plots added to the axes do not delete existing plots.