Filter löschen
Filter löschen

Extracting certain values from a cell array with nth columns containing double arrays

1 Ansicht (letzte 30 Tage)
Hello all,
I have a 1x44 cell array where each column contains a 72x4 double array. For each of these double arrays I need to extract the maximum value within the 3rd column to a new matrix, therefore I should end up with a 44x1 double array. Any suggestions on how to do this would be appreciated. I have attached the .mat file if further clarification regarding the structure is needed.
Thanks in advance.

Akzeptierte Antwort

the cyclist
the cyclist am 4 Dez. 2019
mC = cellfun(@(x)max(x(:,3)),C)

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by