nndrawax.m

来自「神经网络设计书籍配套源码(matlab平台)」· M 代码 · 共 35 行

M
35
字号
function h=nndrawax(c,e)
%NNDRAWAX Neural Network Design utility function.

%
%	NNDRAWAX(C)
%	  C - Color (default = dark blue).
%   E - Erase mode (default = 'normal');
%	Draws the x- and y-axes on a plot with color C.

% First Version, 8-31-95.

%==================================================================

% DEFAULTS
if nargin < 1, c = nndkblue; end
if nargin < 2, e = 'normal'; end

ca = gca;
NP = get(ca ,'nextplot');
set(ca ,'nextplot','add')

xlim = get(ca,'xlim');
xmin = xlim(1);
xmax = xlim(2);
ylim = get(ca,'ylim');
ymin = ylim(1);
ymax = ylim(2);
g = plot([xmin xmax NaN 0 0],[0 0 NaN ymax ymin],':',...
  'color',c,...
  'erasemode',e);

set(ca,'nextplot',NP)

if nargout, h = g; end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?