find the minimum value

8 visualizaciones (últimos 30 días)
Internazionale
Internazionale el 10 de Feb. de 2013
i have a matrix A with double class type data. i have to find the minimum value of matrix, the problem is the min function on matlab require integer data. is there matlab function to find minimum value on double class type data or function conversion between double to integer so min function can use ?

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 10 de Feb. de 2013
Editada: Azzi Abdelmalek el 10 de Feb. de 2013
A=magic(5) % Example
out=min(A(:))
% No, min function don't allow just inetger
help min
  7 comentarios
Internazionale
Internazionale el 11 de Feb. de 2013
how about to find minimum value not only in mintemp (:,:,1,1) but also continue until (:,:,8,8) or the whole e. so, i get 64 minimum value.
Azzi Abdelmalek
Azzi Abdelmalek el 11 de Feb. de 2013
Please, post correctly your question. Post a sample of your data, then ask clearly what you want.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by