Borrar filtros
Borrar filtros

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

20 visualizaciones (últimos 30 días)
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 comentarios

Iniciar sesión para comentar.

Respuesta aceptada

Paolo
Paolo el 4 de Jul. de 2018
[row,col]=find(A==min(A(A<0)))

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by