What type of function Matlab has help to construct symmetric matrix?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Omar B.
el 29 de En. de 2020
Respondida: Omar B.
el 30 de En. de 2020
What type of built-in functions (such as function Toeplitz) that come with Matlab help us to construct a symmetric matrix (not random) ?
2 comentarios
David Goodmanson
el 30 de En. de 2020
Hi Omar,
any matrix of your choosing can be made into a symmetric matrix of course with
A = (A+A.')/2
Respuesta aceptada
Steven Lord
el 30 de En. de 2020
Several of the matrices you can create using the gallery function are symmetric, and some have other interesting and/or useful properties.
Más respuestas (3)
James Tursa
el 30 de En. de 2020
If no specific properties needed, then you could use
n = the desired size
M = rand(n);
M = M + M';
Walter Roberson
el 30 de En. de 2020
squareform() can convert a vector of values representing the upper triangle, into a full symmetric matrix.
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!