Effacer les filtres
Effacer les filtres

Non-zero minimum of a line in a matrix

1 vue (au cours des 30 derniers jours)
Imane hammou ouali
Imane hammou ouali le 12 Mar 2019
Commenté : Matt J le 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?

Réponses (1)

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by