Matrix operations take on many forms, some of which require special matrices that contain all zeros, all ones, or give you the same matrix back through multiplication. In this video, learn how to create several types of special matrices.
- [Instructor] Matrix operations take on many forms,…some of which require special matrices that contain…all zeroes, all ones, or give you the same matrix back…through multiplication.…In this movie I will show you how to create several types…of special matrices.…I'm in MATLAB and I have a blank command window.…The first type of special matrix that I will show you…how to create is a zeroes matrix.…And as the name implies, this is the matrix…that contains zeroes for each of its values.…
You can use these matrices as initialization points…for example, neural network nodes.…You can assign a weight to each one.…To create a zeroes matrix that is square…you only need to pass one argument and that is…the number of rows and columns.…The keyword or function is zeroes,…then a left parenthesis and the number of rows and columns.…So if you wanted to do a four by four,…you just type a four within parenthesis and enter,…and you get a four by four.…
Now note that I am not assigning this to any variables,…I'm just using answer.…
Author
Released
8/28/2018- Defining variables and contains
- Exploring operators
- Summarizing with built-in functions
- Generating random numbers
- Defining vectors and matrices
- Accepting input in scripts
- Writing and reading data from external files
- Creating custom functions
- Using conditional logic
- Repeating operations with loops
- Working with text strings
- Plotting data and function output
- Formatting, saving, and printing plots
- Using statistical and matrix functions
Skill Level Intermediate
Duration
Views
Related Courses
-
SAS Programming for R Users, Part 2
with Jordan Bakerman2h 2m Intermediate
-
Introduction
-
What you should know1m 6s
-
1. Starting Out with MATLAB 2018
-
Define ranges of values4m 45s
-
Generate random numbers5m 35s
-
Get help in MATLAB4m 11s
-
2. Managing Vectors and Matrices
-
Define vectors and matrices5m 56s
-
-
3. Creating MATLAB Scripts
-
Create a MATLAB script7m 33s
-
-
4. Conditional Logic and Loops
-
Use is statements3m 45s
-
5. Managing Strings and Data Structures
-
Define string variables2m 9s
-
Concatenate strings3m 12s
-
Convert strings to numbers4m 22s
-
-
6. Performing Advanced Plotting and Statistical Analysis
-
Create other plot types10m 11s
-
Format plot elements4m 56s
-
Save and print plots3m 18s
-
Conclusion
-
Further information1m 6s
-
- 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: Generate special matrices