Can You give me the example of symmetric matrix 10 x 10.
Or if You know online symmetric matrix generator then give me the links. I tried to make this with Wolfram Mathematica but I did not find a solution
Thanks a lot !
Can You give me the example of symmetric matrix 10 x 10.
Or if You know online symmetric matrix generator then give me the links. I tried to make this with Wolfram Mathematica but I did not find a solution
Thanks a lot !
Note that if $A$ is a square matrix, then $A+A^T$ is always symmetric where $T$ denotes transpose. In fact, $\frac{A+A^T}{2}$ is known as the symmetric part of $A$ (and $\frac{A-A^T}{2}$ the anti-symmetric part of $A$, and $A$ is the sum of its symmetric and antisymmetric parts).
In Matlab, you can use the following commands to get a random symmetric matrix:
A=randn(10); matrix=A+A.';
[Of course, diagonal matrices are always symmetric, so you could do diag(randn(10,1)) or something as well to get a diagonal matrix with random Gaussian entries on the diagonal].
There is also sprandsym in matlab if you want sparse random symmetric matrices.
You can do this easily with pen and paper. The algorithm is the following
(6) is the most important part of the algorithm.
I don't know whether it's useful for you but I remember a matlab code for generating random symmetric positive definite matrix given in How to generate random symmetric positive definite matrices using MATLAB?