Effacer les filtres
Effacer les filtres

To find the maximum value column index of a cell array

4 vues (au cours des 30 derniers jours)
SP
SP le 9 Juil 2022
Commenté : SP le 9 Juil 2022
I am having cell array (C) of 3072*2 cell, each containing matrix values of 5*1295 double. I need to find the maximum value column id (column index) of each 1295 column. How can I do that? Please help me with this. Thanks in advance.

Réponse acceptée

KSSV
KSSV le 9 Juil 2022
[m,n] = size(A) ;
val = cell(m,n) ;
id = cell(m,n) ;
for i = 1:m
for j = 1:n
[val{i,j},id{i,j}]=max(A{i,j}) ;
end
end

Plus de réponses (0)

Catégories

En savoir plus sur Data Types 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