Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to find the index of the minimum in a 1x3 cell {7x100x100}?

2 ビュー (過去 30 日間)
Sebastian
Sebastian 2018 年 1 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello there. I have modellet large quanteties of coordinates and now i try to find where the closest points are. i added the x and y coordinates so i only have one value in each cell but the size of the data is {7x100x100}. for 'normal' 2x2 cells there is an solution i found here which is
if true
[val,idx] = min([Cross_P1_P2{:}]);
len = [0;cumsum(cellfun('length',Cross_P1_P2(:)))];
idc = find(len>=idx,1,'first')-1; % cell index
idv = idx-len(idc); % vector index
[row,col] = ind2sub(size(Cross_P1_P2),idc)
end
anyone any idea or an approach on how to adapt to this problem? regarts

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by