nncentxt.m

来自「《神经网络设计》英文版的配套源代码」· M 代码 · 共 20 行

M
20
字号
function h = nncentxt(s)
% NNCENTXT Neural Network Design utility function.

%    NNCENTXT(S)
%    S - String.
%    Displays string S in current axis, and returns handle.

% Copyright 1994-2002 PWS Publishing Company and The MathWorks, Inc.
% First Version, 8-31-95.
% $Revision: 1.6 $

if nargin == 0, s = 'Neuro-Waffle'; end

x = get(gca,'xlim');
y = get(gca,'ylim');
h = text(sum(x)*0.5,sum(y)*0.5,s);
set(h,'horizontal','center');
set(h,'fontweight','bold');

⌨️ 快捷键说明

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