kamilosxd678

Laborki SI Sieci neuronowe

Apr 7th, 2013
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.26 KB | None | 0 0
  1. net =newff([0 3 ; 0 3], [4,1], {'hardlim', 'hardlim'});
  2.  
  3. net.IW{1,1} = [0, 1; 0, -1; 1, 0 ; -1,0];
  4. net.b{1} = [-1;2;-1;2];
  5.  
  6. net.LW{2,1} = [1,1,1,1];
  7. net.b{2} = -3.6666;
  8.  
  9.  
  10.  
  11. [X Y] = meshgrid(0:0.1:3);
  12. Z = X;
  13.  
  14.  
  15.  
  16. Z(:) = sim(net, [X(:)';Y(:)']);
  17. surf(X,Y,Z);
Advertisement
Add Comment
Please, Sign In to add comment