Exercise 6.8: WHILE loop
Make a function file `divide.m'.
This function must divide a number
by 2 till the new obtained number is smaller than 2.
Input of the function file:
 

: An arbitrary number.
Output of the function file:
 

: A number that represents how often the number
is divided by 2.
 

: The value that is left when the number
is divided by 2,
times.
 a)
 Work out the problem on paper.
 b)
 Write the mfile in MATLAB.
Esteur
20100322