Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
What type of built-in functions (such as function Toeplitz) that come with Matlab help us to construct a symmetric matrix (not random) ?

Risposta accettata

Steven Lord
Steven Lord il 30 Gen 2020
Several of the matrices you can create using the gallery function are symmetric, and some have other interesting and/or useful properties.

Più risposte (3)

James Tursa
James Tursa il 30 Gen 2020
If no specific properties needed, then you could use
n = the desired size
M = rand(n);
M = M + M';
  1 Commento
Omar B.
Omar B. il 30 Gen 2020
Thank you so much. I just want to learn more about the built - in function that can we use to create symmetric function.

Accedi per commentare.


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

Omar B.
Omar B. il 30 Gen 2020
Thank you so much . I really appreciate your help.

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by