This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % elements and returns the product as a scalar. If the input is an % empty vector, the function should return 1. function out = recursiveProd(in) if isempty(in) out=1; else out = in(1).*recursiveProd(in(2:end)); end...
View Full Document
This note was uploaded on 10/22/2009 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Institute of Technology.
- Fall '08