Filter löschen
Filter löschen

Non-zero minimum of a line in a matrix

1 Ansicht (letzte 30 Tage)
Imane hammou ouali
Imane hammou ouali am 12 Mär. 2019
Kommentiert: Matt J am 12 Mär. 2019
hello community,
i want to return the non-zero minimum of a line in a matrix how can i do it please?

Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by