This preview shows page 1. Sign up to view the full content.
Unformatted text preview: %recursive vectors as well out = 0; %terminating condition; if the vector is empty, simply adds 0 to the %sum else out = vec(1) + recurSum(vec(2:end)); %finds the sum of the recursive function end end...
View Full Document
This note was uploaded on 10/21/2010 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Institute of Technology.
- Spring '08