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

4 ビュー (過去 30 日間)
pavlos
pavlos 2012 年 3 月 1 日
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

採用された回答

G A
G A 2012 年 3 月 1 日
out = min(A(A~=0))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOperating on Diagonal Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by