Sort 3D data into Bins

2 vues (au cours des 30 derniers jours)
M
M le 27 Sep 2012
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 commentaire
Jan
Jan le 27 Sep 2012
If you post the existing code, it is easier to create a suggestion for improvements.

Connectez-vous pour commenter.

Réponse acceptée

Jan
Jan le 27 Sep 2012
Modifié(e) : Jan le 27 Sep 2012

Plus de réponses (0)

Catégories

En savoir plus sur Shifting and Sorting Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by