nndtext.m

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

M
28
字号
function h=nndtext(t,x,y,a)
%NNDTEXT Neural Network Design utility function.

%	NNDTEXT(T,X,Y)
%	  T - Text (string).
%   X - Horizontal coordinate.
%   Y - Vertical coordinate.
%   A - Horizontal alignment (default = 'center').
% Draws text T at location (X,Y) in bold and NNDKBLUE and
% erasemode of 'none'. Optionally returns handle to text.

% First Version, 8-31-95.

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

% DEFAULTS
if nargin < 4, a = 'center'; end

% DRAW
H = text(t,x,y,...
  'color',nndkblue',...
  'fontweight','bold',...
  'horiz',a,...
  'erasemode','none');

% RETURN VALUE
if nargout, h = H; end

⌨️ 快捷键说明

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