A symmetric matrix A is a square matrix that is equal to its transpose.
Note that only square matrices can be symmetric. Another condition is that A(i,j)=A(j,i) for all i and j.
Write a matlab function called testsym that returns, for an input matrix A, an output y = 1 if the matrix is symetric and 0 otherwise

1 Kommentar

KSSV
KSSV am 28 Okt. 2020
What have you tried for your home work?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

KSSV
KSSV am 28 Okt. 2020

0 Stimmen

Hint: Read about isequal.

Tags

Gefragt:

am 28 Okt. 2020

Beantwortet:

am 28 Okt. 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by