Azzera filtri
Azzera filtri

Non-zero minimum of a line in a matrix

1 visualizzazione (ultimi 30 giorni)
Imane hammou ouali
Imane hammou ouali il 12 Mar 2019
Commentato: Matt J il 12 Mar 2019
hello community,
i want to return the non-zero minimum of a line in a matrix how can i do it please?

Risposte (1)

Matt J
Matt J il 12 Mar 2019
Modificato: Matt J il 12 Mar 2019
A(A==0)=inf;
minvals=min(A,[],2),
  4 Commenti
Imane hammou ouali
Imane hammou ouali il 12 Mar 2019
Thank you !! it's working now
Matt J
Matt J il 12 Mar 2019
You're welcome, but please Accept-click the answer, to certify that it addressed your question.

Accedi per commentare.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by