Sort 3D data into Bins

조회 수: 4 (최근 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 CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by