Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to do this efficiently?

1 次查看(过去 30 天)
Pinpress
Pinpress 2012-7-31
关闭: MATLAB Answer Bot 2021-8-20
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 个评论
per isakson
per isakson 2012-7-31
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 2012-7-31
编辑:Jan 2012-7-31
Please post your code. Otherwise suggestions for improvements are based on guessing.

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by