mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 18:43:07 +02:00
7 lines
139 B
Mathematica
7 lines
139 B
Mathematica
|
|
function [A] = symetricMatrixGenerator(size)
|
||
|
|
A = rand(size);
|
||
|
|
A = 0.5*(A+A.');
|
||
|
|
for i = 1:size
|
||
|
|
A(i,i) = rand;
|
||
|
|
end
|
||
|
|
end
|