mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 19:03:07 +02:00
13 lines
279 B
Matlab
13 lines
279 B
Matlab
function [A,b,n] = dane3(n)
|
|
A = zeros(n);
|
|
b = zeros(n,1);
|
|
%dane 1
|
|
for j = 1:n %kolumna
|
|
for i = 1:n %wiersz
|
|
if mod(i, 2) == 0
|
|
b(i) = 7/(6*i);
|
|
end
|
|
A(i,j) = 1/(4*(i+j+1));
|
|
end
|
|
end
|
|
end |