www.gusucode.com > nnet 案例源码 matlab代码程序 > nnet/UgElliotSigExample.m

    %% UgElliotSig
%
%% elliotsig

% Copyright 2015 The MathWorks, Inc.

n = -10:0.01:10;
a = elliotsig(n);
plot(n,a)

%% elliotsig compare
a2 = tansig(n);
h = plot(n,a,n,a2);
legend(h,'elliotsig','tansig','Location','NorthWest')