This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % This function should use recursion to produce the mod, and perform the % same way as MATLAB's built-in function. % % % Notes: % - you may *not* use the MATLAB built in function mod() % - you must use recursion % function rem = recurMod(x,y) z = 0 if (x/y) == 1 rem = 0 else while z < x rem = x - z z = z + y end end...
View Full Document
- Fall '08