From the course: MATLAB 2018 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Summarize values using built-in functions

Summarize values using built-in functions - MATLAB Tutorial

From the course: MATLAB 2018 Essential Training

Start my 1-month free trial

Summarize values using built-in functions

- [Instructor] MATLAB comes with a huge selection of built-in functions that you can use to create calculations. There is no way to cover them all, so in this movie, I'll give you a quick overview of some of the most common. I have started MATLAB, and I'm working within a blank command window. One frequent operation that you'll perform, is to round numbers, either up or down, based on different criteria that you set. If you always want to round numbers up, then you can use the ceiling function, which is indicated by the keyword C-E-I-L, which is just short for ceiling. Ceiling rounds up any decimal point to the next whole number. So if you were to type "ceil", followed by a left parentheses, so then "14.01", the smallest two-digit decimal you can have, and then enter, you see that it rounds up to 15. Floor is the opposite. It always rounds down. So if you type "floor", left parentheses, and let's do "14.99", right parentheses, and enter, you see it rounds down to 14. It's almost the…

Contents