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