max value of a cell array

8 vues (au cours des 30 derniers jours)
Isma_gp
Isma_gp le 30 Sep 2016
Réponse apportée : dbmn le 30 Sep 2016
Hi, I have the attached 8x7 cell, inside a structure (data.file_1.max). I would like to get the maximum value of the ones on the 8x7 cell, and do this for several "files" in the structure (data.file_2.max, data.file_3.max, data.file_4.max).
I get an error when trying to use max for cells. I tried using cell2mat first, but it's not working for some reason (maybe because there are cells without values?).
Thanks

Réponses (1)

dbmn
dbmn le 30 Sep 2016
max([ans{:, :}])
... you could use this together with structfun

Catégories

En savoir plus sur Cell Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by