You are on page 1of 1

A=[5 1 0 0;1 5 1 0;0 1 5 1;0 0 1 5];

b=[0;0;0;0];
tol=1e-6;
maks=10;
x=Gauss_Seidel(A, b,
??? x=Gauss_Seidel(A, b,
|
Error: Expected a variable, function, or constant, found "end of line".
A=[5 1 0 0;1 5 1 0;0 1 5 1;0 0 1 5];
b=[33;26;30;15];
tol=1e-6;
maks=10;
A=[5 1 0 0;1 5 1 0;0 1 5 1;0 0 1 5];
b=[33;26;30;15];
x0=[0;0;0;0];
tol=1e-6;
maks=10;
Gauss_Seidel(A, b, x0, tol, maks);
??? Undefined function or variable 'Gauss_Seidel'.
fschange('D:\Coba Fiskom\Gauss_Seidel.m');
clear gauss_seidel
x = Gauss_Seidel(A, b, x0, tol, maks);
i x1 x2 x3 ...
xlama =
0
0
0
0
x
??? In an assignment A(I) = B, the number of elements in B and
I must be the same.
Error in ==> D:\Coba Fiskom\Gauss_Seidel.m
On line 22 ==> x(j) = C(j,:) * 'x' + r(j);
fschange('D:\Coba Fiskom\Gauss_Seidel.m');
clear gauss_seidel
x = Gauss_Seidel(A, b, x0, tol, maks);
i x1 x2 x3 ...
xlama =
0
0
0
0
x
??? In an assignment A(I) = B, the number of elements in B and
I must be the same.
Error in ==> D:\Coba Fiskom\Gauss_Seidel.m
On line 22 ==> x(j) = C(j,:)*'x'+r(j);
exit

You might also like