MATLAB: Rounding Functions - round

Опубликовано: 11 Октябрь 2024
на канале: Engineering with Dr. Kelsey Joy
672
6

I demonstrate how to use the MATLAB built-in function ROUND and some potential applications for this function. The ROUND function is used to round values. You can also round with a certain number or decimals or round to the nearest tens, hundreds, etc.

To round up, use the CEIL function and watch this video:    • Shorts  

To round based on common rounding rule of 5 rounds up, then use ROUND function and watch this video:    • Shorts  

To round towards zero, so round down for positive numbers and up for negative numbers, then use FIX function and watch this video:
   • Shorts  

To round down, use the FLOOR function and watch this video:    • Shorts  

#matlab #matlabtutorials #code #engineer #engineering #learntocode