フィルターのクリア

Info

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

Best way to grid data

1 回表示 (過去 30 日間)
edward kabanyas
edward kabanyas 2019 年 10 月 12 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I grid my data using the following simple procedure:
Latitude=data1(:,8);
Longitude=data1(:,9);
latedges=-0.7:0.1:0.3;
lonedges=99.8:0.1:100.8;
for i=1:numel(lonedges)-1,
for j=1:1:numel(latedges)-1,
T(i,j)=size(data1(Longitude>=lonedges(i) & Longitude<=lonedges(i+1) & Latitude>=latedges(j) & Latitude<=latedges(j+1),:),1);
end;
end
It works but it is very slow. Is there another option to do it?
Thank you for help.
Edward

回答 (0 件)

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

Community Treasure Hunt

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

Start Hunting!

Translated by