This preview shows page 1. Sign up to view the full content.
Unformatted text preview: numi = round(numi); num = num + 1; vec = [vec numi]; %this while loop will take the number that is greater than 38 and %divide it by 3, then add 25 to the new number, and then round it;. .. %then this number will be placed in vec, while adding one to num each %time the loop is run; the loop will continue until numi is less than %38 end else num=0; vec=; %if the initial number is not greater than 38, then vec will be empty %and num will equal 0, because no value is placed in vec and the loop %has not run any times 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 Tech.
- Spring '08