This preview shows page 1. Sign up to view the full content.
Unformatted text preview: %usage: [vec num] = converge(numi) if numi>38 %this following function will only run if the original value is greater %than 38 num=0; while numi>38 numi = numi./3; numi = numi + 25; numi = round(numi); vec = [numi]; num = num + 1; %this while loop will take the number that is greater than 38 and %divide it by 3, then add 25 to the new number, t...
View Full
Document
 Spring '08
 Stallworth

Click to edit the document details