Question: Problem Description Create a function in Matlab. A square matrix is symmetric if array(i,j) = array(j,i) for all i, j. We say that a square
Problem Description
A square matrix is symmetric if array(i,j) = array(j,i) for all i, j. We say that a square matrix is skew symmetric if array(i,j) = - array(j,i) for all i, j. Notice that this means that all of the values on the diagonal must be 0. Write a function that will receive a square matrix as an input argument, and will return logical 1 for true if the matrix is skew symmetric or logical 0 for false if not.
For example, the following matrix is skewed:
0 1 1 1
-1 0 1 1
-1 -1 0 1
-1 -1 -1 0
The following matrix is not:
1 1 1 1
1 2 1 1
1 0 1 1
1 1 0 1
Solve
A square matrix is symmetric if array(i,j) = array(j,i) for all i, j. We say that a square matrix is skew symmetric if array(i,j) = - array(j,i) for all i, j. Notice that this means that all of the values on the diagonal must be 0. Write a function that will receive a square matrix as an input argument, and will return logical 1 for true if the matrix is skew symmetric or logical 0 for false if not.
For example, the following matrix is skewed:
0 1 1 1
-1 0 1 1
-1 -1 0 1
-1 -1 -1 0
The following matrix is not:
1 1 1 1
1 2 1 1
1 0 1 1
1 1 0 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
