Question: 3. Rounding. Matlab allows us to round numbers in different ways. Lets try it out. a. Try out round(3.1), round(3.49), round(3.5), and round(3.999). What does
3. Rounding. Matlab allows us to round numbers in different ways. Lets try it out. a. Try out round(3.1), round(3.49), round(3.5), and round(3.999). What does round do? b. Now try the ceil function. What is ceil(3.000000001), ceil(3.9999999999) and ceil(2.999999999)? c. Repeat part b but use the floor function. How do ceil and floor work? d. rem can be a useful function to find remainders. Try out rem(3,1), rem(3,2), and rem(3,3). Describe how you think rem works.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
