Created
October 15, 2015 22:53
-
-
Save stevester94/a4ea06116262480d19ac to your computer and use it in GitHub Desktop.
recursive matrix test matlab version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function total = rectest(n, constant, divisibleBy) | |
| if(n <= divisibleBy) | |
| total = constant; | |
| else | |
| total = recTest(n/4, constant, divisibleBy); | |
| total = total + recTest(n/4, constant, divisibleBy); | |
| total = total + recTest(n/4, constant, divisibleBy); | |
| total = total + recTest(n/4, constant, divisibleBy); | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment