필터 지우기
필터 지우기

how to find the index of the highest negative element in a two dimensional matrix?

조회 수: 20 (최근 30일)
suppose I have a two dimensional matrix having positive and negative elements. I want to find the index of the element which is the most negative element in the matrix. the index should give information about the row and column in which the element is present.
  댓글 수: 4

댓글을 달려면 로그인하십시오.

채택된 답변

Paolo
Paolo 2018년 7월 4일
[row,col]=find(A==min(A(A<0)))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by