symmetric

Purpose

Defines a symmetric matrix variable

Synopsis

X=symmetric;

X=symmetric(n);

Description

This program defines an “abst” data of type “variable”, representing a symmetric matrix of size n-by-n, where n is the only input argument (default n = 1).

Example

To define matrix variable

$$X=\begin{bmatrix}x_{1}&x_{2}&x_{3}\\x_{2}&x_{4}&x_{5}\\x_{3}&x_{5}&x_{6}\end{bmatrix}$$

type

>> X=symmetric(3);

See also

diagonal, rectangularskewvariable