フィルターのクリア

Non-zero minimum of a line in a matrix

1 回表示 (過去 30 日間)
Imane hammou ouali
Imane hammou ouali 2019 年 3 月 12 日
コメント済み: Matt J 2019 年 3 月 12 日
hello community,
i want to return the non-zero minimum of a line in a matrix how can i do it please?

回答 (1 件)

Matt J
Matt J 2019 年 3 月 12 日
編集済み: Matt J 2019 年 3 月 12 日
A(A==0)=inf;
minvals=min(A,[],2),
  4 件のコメント
Imane hammou ouali
Imane hammou ouali 2019 年 3 月 12 日
Thank you !! it's working now
Matt J
Matt J 2019 年 3 月 12 日
You're welcome, but please Accept-click the answer, to certify that it addressed your question.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by