Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started