Switch signs to positive in the diagonal of a matrix
6 次查看(过去 30 天)
显示 更早的评论
Hi
So I have an already existing 6x6 matrix, but I would like to make sure that the diagonals are all positive.
Thus, how do I transform/replace the diagonal of my matrix to be all positive?
I have tried to seach for, how to replace the diagonal with a vector, but without luck.
If I could replace the original diagonal with the absolute diagonal, this would also do it.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!