-
1 Comment
Jan
on 26 Feb 2012
This solution accepts arrays, avoids the explicite creation of 1:2^n and calculates the expensive power once only.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!