minimum value of a matrix with the main diagonal elements equals to zero

6 vues (au cours des 30 derniers jours)
pavlos
pavlos le 1 Mar 2012
Hello,
I have a 10x10 matrix where the main diagonal is zeros.
How the minimum value of the elements is calculated, excluding the zeros?
Thank you.
Best,
Pavlos

Réponse acceptée

G A
G A le 1 Mar 2012
out = min(A(A~=0))

Plus de réponses (0)

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!

Translated by