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

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 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!