필터 지우기
필터 지우기

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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by