From the course: MATLAB Essential Training
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Identify top and bottom values in a data set - MATLAB Tutorial
From the course: MATLAB Essential Training
Identify top and bottom values in a data set
- [Instructor] Analyzing a full set of data offers useful insights, but it can be interesting to examine your data quickly, finding the largest or smallest values, or looking at the top two or three rows based on values in a specific column. And in this movie, I will show you how to perform those tasks in MATLAB. I've opened a blank command window and I need some data to work with. So I'll start by defining a horizontal vector called vec1. Then I'll type a left square bracket, and I'll just put in some values. So 1, 5, 6, 3, 10, 4, and 5. All right, looks good. Right square bracket to close and enter and there's my vector. If I want to find the smallest three values from this set of data, then I can use the mink command. So I'll do min, and then k. K indicates a number, and of course, min is minimum. Then left parentheses and I'll use vector one, then a comma and the number of items that I want to see. That'll be…
Contents
-
-
-
-
-
-
-
-
(Locked)
Solve systems of linear equations using matrix functions3m 58s
-
(Locked)
Summarize data using statistical functions5m 8s
-
(Locked)
Identify top and bottom values in a data set4m 4s
-
(Locked)
Evaluate a function given a specific input3m 1s
-
(Locked)
Evaluate a polynomial at a given point3m 6s
-
(Locked)
-