How to reflect the element above the diagonal of a matrix to the lower diagonal ?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Tuong Nguyen Minh
le 17 Juil 2020
Modifié(e) : Matt J
le 19 Juil 2020
How could I reflect all the upper element of a square matrix of size K = 3 to the lower side
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/333174/image.png)
Like this ?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/333177/image.png)
Thank you very much
0 commentaires
Réponse acceptée
Matt J
le 17 Juil 2020
Modifié(e) : Matt J
le 17 Juil 2020
b=triu(a)+triu(a,1).'; %the result
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Operating on Diagonal Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!