Lists of values provide a lot of important information. You can gain further information by sorting lists either in ascending or descending order, or reversing a list that you've already created.
- [Instructor] List of values…provide a lot of important information.…You can get further information by sorting lists…either in ascending or descending order,…or reversing a list that you have already created.…In this movie, I will show you how to sort your list,…how to reverse its order,…and also how to pad or expand a list…so it has the exact length that might be required…for some calculations.…I've opened a blank Mathematica notebook,…so I need a list of values to work with.…So I will start by creating a list…called hlist, equals,…then a left curly bracket…and then the value's one, eight,…seven,…one, two,…six,…another comma, and then the last three values,…three,…five,…four.…
Then a right curly bracket to close the list definition…and Shift + Enter…and my list is in place.…If you want to sort the values in your list,…you can do that using the Sort command…and you can either go in ascending order or descending order…or as Mathematica calls it, Greater,…which puts the highest values in the front of the list,…or Less, which puts the lowest values…
Author
Released
1/24/2017- List the steps necessary to see what your notebook will look like when printed.
- Recall why you would use the Basic Math Assistant in Mathematica when creating expressions.
- Name the keyword used in conjunction with the Sort function to sort in descending order.
- Explain how to create a matrix with two rows, three columns, and that has all elements assigned the value three.
- Explain how to generate a histogram of a list of data stored in a list that is guaranteed to only display up to the maximum value of the list.
- Recall the number of controls you can add to a Mathematica notebook using the Manipulate keyword.
Skill Level Intermediate
Duration
Views
Related Courses
-
Business Analytics: Prescriptive Analytics
with Alan Simon2h 40m Intermediate
-
Introduction
-
Welcome1m 14s
-
-
1. Introducing Mathematica 11
-
Get help in Mathematica3m 51s
-
2. Surveying Basic Mathematica Commands
-
Assign values to variables2m 38s
-
Import and export data3m 25s
-
3. Manipulating Lists
-
Create a list2m 42s
-
Refer to and edit list items5m 29s
-
Add and delete list items4m 27s
-
Sort and reorder lists4m 36s
-
Select list items by rule4m 20s
-
Delete duplicate list items2m 15s
-
-
4. Analyzing Data Using Descriptive Statistics
-
Identify data quartiles2m 40s
-
5. Manipulating Matrices
-
Define vectors and matrices4m 22s
-
Generate useful matrices3m 28s
-
Convert a matrix to a list2m 50s
-
-
6. Managing Executable Mathematica Scripts
-
Define a function3m 49s
-
7.Visualizing and Formatting Data
-
Create a bar chart5m 1s
-
Create a scatter plot3m 23s
-
Create a paired bar chart4m 16s
-
Set chart options4m 12s
-
Plot function output3m 7s
-
-
8.Creating Interactive and Animated Visualizations
-
Create a Wolfram Cloud app4m 29s
-
Conclusion
-
Additional resources1m 17s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Sort and reorder lists