Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- net =newff([0 3 ; 0 3], [4,1], {'hardlim', 'hardlim'});
- net.IW{1,1} = [0, 1; 0, -1; 1, 0 ; -1,0];
- net.b{1} = [-1;2;-1;2];
- net.LW{2,1} = [1,1,1,1];
- net.b{2} = -3.6666;
- [X Y] = meshgrid(0:0.1:3);
- Z = X;
- Z(:) = sim(net, [X(:)';Y(:)']);
- surf(X,Y,Z);
Advertisement
Add Comment
Please, Sign In to add comment