Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How to do this efficiently?

1 vue (au cours des 30 derniers jours)
Pinpress
Pinpress le 31 Juil 2012
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hi,
I have a number of (>30k) 3D curved lines stored in a cell. They are of different lengths. What would be the best way to find out whether each one goes through a rectangular bounding box? With a for loop, it seems to be slow.
Thanks.
  2 commentaires
per isakson
per isakson le 31 Juil 2012
Do you have a working solution based on a for loop?
I don't think the for loop can be the problem. Do you have a growing variable in the loop?
Jan
Jan le 31 Juil 2012
Modifié(e) : Jan le 31 Juil 2012
Please post your code. Otherwise suggestions for improvements are based on guessing.

Réponses (0)

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by