"

18 Making and Understanding a Zero Matrix:

Making and Understanding a Zero Matrix:

1. A zero matrix is a matrix where all elements are 0. It’s like the number 0 in regular arithmetic because when you add
the zero matrix to any other matrix, you get the same matrix back.
2. So in MATLAB, the first and longer options would be to manually type in your Zero Matrix by following a similar
command with different values “>> I = [ 1 0 0; 0 1 0; 0 0 1]”.

1. On the other hand, you can follow this much shorter customizable command… “zeros(followed by your desired
dimensions)”
➢ Example 1: zeros(5)
➢ Example 2: zeros(3,6)

 

License

Tech Tangerine Guide - Matlab Copyright © by pranjalsaloni. All Rights Reserved.