mahmoud92
Newbie level 2
when i am training a square wave to a neural network
,network reply response
figure 1 : response of training of network
figure 2: square pulse train
,network reply response
figure 1 : response of training of network
figure 2: square pulse train
Code:
clear all
fs = 100000;
t = 0:1/fs:5;
x2 = square(2*pi*t);
net = newff([-1.5 1.5],[5,1],{'logsig','purelin'});
net= train(net,t,x2);
Y=net(x2);
subplot(211)
plot(t,Y)
axis([0 5 -1.2 1.2]);
subplot(212)
plot(t,x2);
Last edited by a moderator: