⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arttest.m

📁 Mathematical Methods by Moor n Stiling.
💻 M
字号:
% test the ART algorithm

% Copyright 1999 by Todd K. Moon

A = [1 2 3;
     -4 -2 -5;
     2 7 10;
     4 3 -2];
xtrue = [1;2;3];
b = A*xtrue;

lastx = [1;1;1];
e = [];
for i=1:10
  x = art1(A,lastx,b);
  e = [e norm(b - A*x)];
  lastx = x;
end

subplot(2,2,1);
plot(e);
xlabel('iteration number')
ylabel('||b - A x[k]||')
% print -dps ../pictures/art1.ps
% print -deps ../pictures/art1.eps

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -