Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % 2.2.
- figure;
- hold on;
- plot(0:1:iteraciones, w);
- legend('w_{1}', 'w_{2}', 'Location', 'Best');
- xlim([0 iteraciones]);
- xlabel('Iteraciones');
- ylabel('w(k)');
- title('Evolución de los pesos');
- grid on;
- hold off;
- figure;
- hold on;
- plot(0:1:iteraciones, lambda1*w(:, 1).^2+lambda2*w(:, 2).^2);
- xlim([0 iteraciones]);
- xlabel('Iteraciones');
- ylabel('E(k)');
- title('Evolución del error');
- grid on;
- hold off;
Advertisement
Add Comment
Please, Sign In to add comment