MATLAB Answers

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

1 ビュー (過去 30 日間)
HB 2019 年 12 月 4 日
コメント済み: HB 2019 年 12 月 5 日
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.

  0 件のコメント

サインイン to comment.


the cyclist
the cyclist 2019 年 12 月 4 日
mC = cellfun(@(x)max(x(:,3)),C)

  1 件のコメント

サインイン to comment.

その他の回答 (0 件)

サインイン してこの質問に回答します。

Translated by