mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 22:43:18 +02:00
10 lines
251 B
Matlab
10 lines
251 B
Matlab
function [A] = genA(SIZE,czySym)
|
|
A = rand(SIZE);
|
|
while rank(A)~= SIZE %powstanie macierzy o pelnym rzedzie
|
|
A = rand(SIZE);
|
|
end
|
|
|
|
if czySym == 1
|
|
A = A'+A; %dla symetrycznych
|
|
end
|
|
end |