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 data using statistical functions - MATLAB Tutorial
From the course: MATLAB 2018 Essential Training
Summarize data using statistical functions
- [Instructor] MATLAB performs difficult linear algebra quickly, but you can also perform statistical analysis to find the average, variance, standard deviation, and other characteristics of your data. I'll show you how to perform those tasks in this movie. I've just started MATLAB and I have an empty command window, so I can start typing in my values. I'll call my data vector one, so vec1, equal for assignment, then a left square bracket and I'll type in the values four, 21, nine. Don't need a comma. You can use them, but if you're not using them to separate your values from the start, then you shouldn't as you go on. Then 31, nine, and 14. And repeating the nine is intentional. So everything looks good. Press Enter, and there are my values. If I want to find the arithmetic average or mean of these six values, then I can use the mean function. That's M-E-A-N followed by a left parentheses, and my vector name is vec1, Enter, and I get an average of 14 and two thirds, 14.6667 rounded…