If I have an upper triangular matrix on MATLAB LIKE
A = 1 2 3 4 0 5 6 7 0 0 8 9 0 0 0 1
How would you convert it to:
a = 1 2 3 4 2 5 6 7 3 6 8 9 4 7 9 1
(transpose and save the original upper triangular values)
a = A + triu(A, 1)' does what you want (assuming real matrices or you want to get a Hermitian matrix for complex values).
a = A + triu(A, 1)'
Source: https://habr.com/ru/post/1795000/More articles:Data Layer Applications - Mail Deployment - sql-serverpython facebook sdk facebook call slow compared to command line hang - performanceDescription (and many attributes) for User Control does not display information - designКак я могу сигнализировать спящий поток в Java? - javaShould I use (non-blocking) NIO for UDP? - javaJava nio udp broadcast - javamultiplication result negative zero - pythonSave form data in browser backward or forward - javascriptКак скопировать все элементы по диагонали ниже диагонали в Matlab? - matlabFlask deployment on cherokee and uwsgi - pythonAll Articles