-
12 Comments
Show
9 older comments
Ha
on 26 Feb 2024
Its so smart you are
Andrew
on 16 Apr 2024
Well done!
I started with a much longer function and eventually whittled down to something like this. I think breaking it out into a few extra lines and adding some comments would be even better in practice, to make the code easier to read and modify.
Andrei
on 7 Dec 2024
this is very clever
Suggested Problems
-
Sum all integers from 1 to 2^n
16121 Solvers
-
1869 Solvers
-
5013 Solvers
-
1562 Solvers
-
895 Solvers
More from this Author80
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!