Non-zero minimum of a line in a matrix

2 visualizzazioni (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.

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by