Borrar filtros
Borrar filtros

the dimension of matrix minimum

1 visualización (últimos 30 días)
Farid sjdclkjas
Farid sjdclkjas el 5 de Ag. de 2013
Hi, I know that if we have a matrix "A" we can get the minimum value of this matrix by min(A), but is it possible to get the dimension of this minimum value? for example if we have a 30*90 matrix "A" and assume that the minimum value is A(25,81), how can we get these numbers ==>(25,81)?
thanks,

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 5 de Ag. de 2013
Editada: Andrei Bobrov el 5 de Ag. de 2013
[ii,ii] = min(A(:));
[i1,j1] = ind2sub(size(A),ii);
  1 comentario
Jan
Jan el 5 de Ag. de 2013
@Farid sjdclkjas: Whenever you have questions concerning a command, reading the documentation is a good idea:
doc min

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Operators and Elementary Operations 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