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: 2   Last Post: Apr 22, 2015 12:04 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

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


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]

© The Math Forum 1994-2015. All Rights Reserved.