This repository has been archived on 2021-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
NC/mp5/Project_5_Maggioni_Claudio/test.m

18 lines
463 B
Mathematica
Raw Normal View History

2020-11-25 14:20:13 +00:00
addpath /Users/maggicl/Git/matlab2tikz/src/;
load('test_data/A_test.mat');
load('test_data/b_test.mat');
load('test_data/x_test_exact.mat');
[xa, rveca] = myCG(A_test, b_test, b_test * 0, 1000, cutOff);
figure;
semilogy(rveca);
title("Residual vector squared 2-norm (log) over iterations");
matlab2tikz('showInfo', false, '../test_semilogy.tex');
v = eig(A_test);
figure;
semilogy(v);
title("Eigenvalues of A");
matlab2tikz('showInfo', false, '../A_eig.tex');