Navigation: Language Reference > Functions > Matrix >
y = sym(A);
Returns a symmetric matrix. This function is equal to:
y = (A + transpose(A))/2;
A = [1,2;3,4];
Y = sym(A);
A must be a square matrix. Y and A must be of the same size.