Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to find maximum value of cell array

1 visualización (últimos 30 días)
Vishal Sharma
Vishal Sharma el 24 de En. de 2017
Comentada: Stephen23 el 24 de En. de 2017
for a = 1:10
x{a} = xlsread(fileName, a, range);
end
How to find the maximum value of this cell array
or simply take example of
a cell array in this form
A = [1] [4] [6] [1 ] [5] [7]
How to find the maximum value (i.e. 7)
  1 comentario
Stephen23
Stephen23 el 24 de En. de 2017
Duplicate:
https://www.mathworks.com/matlabcentral/answers/321723-how-to-find-the-index-of-the-element-of-a-cell-array-which-has-the-maximum-size

Respuesta aceptada

Vishal Sharma
Vishal Sharma el 24 de En. de 2017
got the answer
max([A{:}])
  2 comentarios
Vishal Sharma
Vishal Sharma el 24 de En. de 2017
Editada: Vishal Sharma el 24 de En. de 2017
But I still dont know how to get location of maximum value in cell array
anybody know?
please help me :)
Stephen23
Stephen23 el 24 de En. de 2017
When people learn to read the MATLAB documentation, then they learn how to use MATLAB. Did you look at the max documentation? The documentation tells you exactly what you are looking for.

Más respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by