What type of function Matlab has help to construct symmetric matrix?
조회 수: 2 (최근 30일)
이전 댓글 표시
What type of built-in functions (such as function Toeplitz) that come with Matlab help us to construct a symmetric matrix (not random) ?
댓글 수: 2
David Goodmanson
2020년 1월 30일
Hi Omar,
any matrix of your choosing can be made into a symmetric matrix of course with
A = (A+A.')/2
채택된 답변
Steven Lord
2020년 1월 30일
Several of the matrices you can create using the gallery function are symmetric, and some have other interesting and/or useful properties.
추가 답변 (3개)
James Tursa
2020년 1월 30일
If no specific properties needed, then you could use
n = the desired size
M = rand(n);
M = M + M';
Walter Roberson
2020년 1월 30일
squareform() can convert a vector of values representing the upper triangle, into a full symmetric matrix.
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!