已知A矩阵为:
4 20 12 8
3 15 7 40
8 22 12 36
11 30 18 46
将矩阵转变为对称矩阵
4 20 12 8
20 15 7 40
12 7 12 36
8 40 36 46
a=[4,20,12,8;3,15,7,40;8,22,12,36;11,30,18,46]; b=triu(a,0)+tril(a',-1); disp(num2str(b));
标签:12,20,46,矩阵,36,40,MATLAB,对称 From: https://www.cnblogs.com/lachesism/p/16776863.html