0001
0002
0003 clear all;
0004
0005
0006 rand('state',sum(100*clock));
0007
0008 EncodeMethod='Linear';
0009 DecodeMethod='Linear';
0010 InputSpikeRange=[2 8];
0011 OutputSpikeRange=[16 28];
0012 InputRange=[0 2*pi];
0013 OutputRange=[-1 1];
0014 Inputs=2*pi*rand(60,1);
0015 Outputs=cos(Inputs);
0016 TestFlag=1;
0017 TestingInputs=2*pi*rand(10,1);
0018 TestingOutputs=cos(TestingInputs);
0019 FH=@cos;
0020
0021 save('Cosine');
0022
0023 InputRange=[0 4*pi];
0024 OutputRange=[-1 1];
0025 Inputs=4*pi*rand(60,1);
0026 Outputs=cos(Inputs);
0027 TestFlag=1;
0028 TestingInputs=2*pi*rand(10,1);
0029 TestingOutputs=cos(TestingInputs);
0030
0031 save('Cosine2Periods');