tansigfx.m

来自「用人工神经网络进行人脸识别」· M 代码 · 共 14 行

M
14
字号
function [sig] = tansigfx(t);% USAGE: y = tansigfx(x)% tansigfx gives back the Boltzmann/logistic/Fermi function:% y = 2*(((1+exp(-x)).^-1)-0.5);% t is the face matrix of the system% t can be a scalar or a matrix with% the same dimension as x [ni,nj]=size(t);un=ones(ni,nj);sig=2*(((un+exp(-t)).^-1)-0.5);

⌨️ 快捷键说明

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