Sort 3D data into Bins

3 ビュー (過去 30 日間)
M
M 2012 年 9 月 27 日
Hi,
I have a matrix containing 3D position data. i.e. The first row of "A" contains the first X,Y and Z coordinate of a point. I want to create a 3D matrix (say 150 x 150 x 150 elements) and sort the positional data into these voxels. The 3D matrix elements would contain the number of points that lie in that voxel.
I'm currently using three for loops which is very slow.
Any ideas that are more efficient?
Thanks
  1 件のコメント
Jan
Jan 2012 年 9 月 27 日
If you post the existing code, it is easier to create a suggestion for improvements.

サインインしてコメントする。

採用された回答

Jan
Jan 2012 年 9 月 27 日
編集済み: Jan 2012 年 9 月 27 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by