Borrar filtros
Borrar filtros

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

4 visualizaciones (últimos 30 días)
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

Respuesta aceptada

G A
G A el 1 de Mzo. de 2012
out = min(A(A~=0))

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by