i need help (matlab)

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

KSSV
KSSV 2020-10-28

0 个投票

Hint: Read about isequal.

类别

在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息

标签

回答:

2020-10-28

Community Treasure Hunt

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

Start Hunting!

Translated by