What type of function Matlab has help to construct symmetric matrix?

5 次查看(过去 30 天)
What type of built-in functions (such as function Toeplitz) that come with Matlab help us to construct a symmetric matrix (not random) ?

采纳的回答

Steven Lord
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
James Tursa 2020-1-30
If no specific properties needed, then you could use
n = the desired size
M = rand(n);
M = M + M';
  1 个评论
Omar B.
Omar B. 2020-1-30
Thank you so much. I just want to learn more about the built - in function that can we use to create symmetric function.

请先登录,再进行评论。


Walter Roberson
Walter Roberson 2020-1-30
squareform() can convert a vector of values representing the upper triangle, into a full symmetric matrix.

Omar B.
Omar B. 2020-1-30
Thank you so much . I really appreciate your help.

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by