Make a function file `divide.m'.
Exercise 6.8: WHILE loop
This function must divide a number
by 2 till the new obtained number is smaller than 2.
Input of the function file:
Output of the function file:
: An arbitrary number.
: A number that represents how often the number
is divided by 2.
: The value that is left when the number
is divided by 2,
- Work out the problem on paper.
- Write the m-file in MATLAB.