Accelerating the pace of engineering and science

# skewdec

Form skew-symmetric matrix

x = skewdec(m,n)

## Description

skewdec(m,n) forms the m-by-m skew-symmetric matrix

$\left[\begin{array}{cccc}0& -\left(n-1\right)& -\left(n-2\right)& \dots \\ \left(n+1\right)& 0& -\left(n-3\right)& \dots \\ \left(n+2\right)& \left(n+3\right)& 0& \dots \\ \dots & \dots & \dots & \dots \\ \dots & \dots & \dots & \dots \end{array}\right]$

This function is useful to define skew-symmetric matrix variables. In this case, set n to the number of decision variables already used.