Is there any way to find the minimum value of a cell array?
This is my cell array,
d(:)=[] [1.9135e+004] [1.9148e+004] [1.9180e+004] [1.9127e+004] [1.9133e+004] [1.9161e+004] [1.9149e+004] [1.9146e+004] [1.9137e+004]
Can i find the minimum of this cell array?Plz help me to solve this problem.

 Respuesta aceptada

TAB
TAB el 18 de Sept. de 2011

3 votos

I don't think the declaration of cell you have given above is correct.
Even though if content of your cell array d have the same data type you can find minimum as
MinVal=min(cell2mat(d));

3 comentarios

Jaanu
Jaanu el 18 de Sept. de 2011
Yes, it is working. Thanks Alam!
Andrei Bobrov
Andrei Bobrov el 18 de Sept. de 2011
min([d{:}])
Mehri Mehrnia
Mehri Mehrnia el 27 de Jun. de 2022
if cell2mat doesn't work for me, what should I do?
The reason that it doesn't work is cell arrays are not in same size!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 18 de Sept. de 2011

Comentada:

el 27 de Jun. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by