sym

Navigation:  Language Reference > Functions > Matrix >

sym

Previous pageReturn to chapter overviewNext page

Syntax

y = sym(A);

Description

Returns a symmetric matrix. This function is equal to:

y = (A + transpose(A))/2;

Examples

A = [1,2;3,4];

Y = sym(A);

Limitations

A must be a square matrix. Y and A must be of the same size.