Guest User

Untitled

a guest
May 2nd, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.41 KB | None | 0 0
  1. % 2.2.
  2.  
  3. figure;
  4. hold on;
  5. plot(0:1:iteraciones, w);
  6. legend('w_{1}', 'w_{2}', 'Location', 'Best');
  7. xlim([0 iteraciones]);
  8. xlabel('Iteraciones');
  9. ylabel('w(k)');
  10. title('Evolución de los pesos');
  11. grid on;
  12. hold off;
  13.  
  14. figure;
  15. hold on;
  16. plot(0:1:iteraciones, lambda1*w(:, 1).^2+lambda2*w(:, 2).^2);
  17. xlim([0 iteraciones]);
  18. xlabel('Iteraciones');
  19. ylabel('E(k)');
  20. title('Evolución del error');
  21. grid on;
  22. hold off;
Advertisement
Add Comment
Please, Sign In to add comment