Clear Filters
Clear Filters

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

4 views (last 30 days)
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

Accepted Answer

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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!