WUT_Computer_Science/ENUME/references/PW-EiTI/MNUM/Project2/symetricMatrixGenerator.m

7 lines
139 B
Mathematica
Raw Normal View History

2021-11-10 13:12:25 +01:00
function [A] = symetricMatrixGenerator(size)
A = rand(size);
A = 0.5*(A+A.');
for i = 1:size
A(i,i) = rand;
end
end