plotzero.m
来自「hi i have a huge collection are you int」· M 代码 · 共 33 行
M
33 行
function plotzero(linestyle)%PLOTZERO(linestyle) To plot a set of axes at the current zero position.%% Andrew Knight, Oct, 1992%if nargin == 0 linestyle = '-';endax = axis;holdstate = ishold;if ~ishold hold onendbgcolour = get(gcf,'color');if bgcolour==[0.5 0.5 0.5] colour = rand(1,3);else colour = 1 - bgcolour;endh = plot([ax(1) 0;ax(2) 0],[0 ax(3);0 ax(4)]);set(h,'color',colour,'linestyle',linestyle)axis(ax)% Restore old hold stateif holdstate==0 hold offend
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?