Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: faster ind2sub in 3D
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
davebrackett

Posts: 226
Registered: 12/7/07
faster ind2sub in 3D
Posted: Feb 14, 2013 11:44 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,

This question is about speeding up ind2sub, which from a search shows me that others have also been keen to find a faster alternative. I have found some suggestions for 2D such as :

r = rem(idx-1,nrows)+1;
c = (idx-r)/nrows + 1;

but none for 3D. Can anyone show me the modifications to make for 3D pls? Thanks!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.