?? satlins.m
字號(hào):
function a = satlins(n,b)
%SATLINS Symmetric saturating linear transfer function.
%
% SATLINS(N)
% N - SxQ Matrix of net input (column) vectors.
% Returns values of N truncated into the interval [-1, 1].
%
% EXAMPLE: n = -10:0.1:10;
% a = satlins(n);
% plot(n,a)
%
% SATLINS(Z,B) ...Used when Batching.
% Z - SxQ Matrix of weighted input (column) vectors.
% B - Sx1 Bias (column) vector.
% Returns truncated values of N, where N is found by adding
% B to each column of Z.
% Mark Beale, 12-15-93
% Copyright (c) 1992-94 by the MathWorks, Inc.
% $Revision: 1.1 $ $Date: 1994/01/11 16:28:35 $
if nargin < 1, error('Not enough arguments.'); end
if nargin==2
[nr,nc] = size(n);
n = n + b*ones(1,nc);
end
less = (n < -1);
greater = (n > 1);
a = (~(less | greater)).*n + greater - less;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -