To find the maximum value column index of a cell array
4 次查看(过去 30 天)
显示 更早的评论
采纳的回答
KSSV
2022-7-9
[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
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!