Help with minimum of a matrix
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
aurc89
el 18 de Sept. de 2014
Comentada: John D'Errico
el 18 de Sept. de 2014
Hello! I have a function which generates a matrix M containing elements. Some of them are infinite (- Inf for example). I need to extract the minimum finite value of M, but if I write min(M) I obtain of course - Inf. What command can I use ? Thanks
0 comentarios
Respuesta aceptada
Más respuestas (1)
Youssef Khmou
el 18 de Sept. de 2014
As are you are concerned about the global mean, you truncate the Inf elements and compute the min:
M(isinf(M))=[];
min(M)
Ver también
Categorías
Más información sobre Multidimensional Arrays 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!