18 lines
No EOL
463 B
Matlab
18 lines
No EOL
463 B
Matlab
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'); |