Non-zero minimum of a line in a matrix

1 次查看(过去 30 天)
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 个评论
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 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by