📄 art1.m
字号:
function x = art1(A,x,b)
%
% Produce an updated solution x to Ax = b using the algebraic reconstruction
% technique.
% (This function is for demonstration, and does not precompute
% row norms as a more efficient version would.) No constraints are applied.
%
% function x = art1(A,x,b)
%
% A = input matrix
% x = initial solution
% b = right-hand side
%
% Output x= updated solution
% Copyright 1999 by Todd K. Moon
[m,n] = size(A);
for i=1:m
x = x + (b(i) - A(i,:)*x)/(A(i,:)*A(i,:)') * A(i,:)';
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -