%% Test if Matrix Is Skew-Symmetric
% Create a 4-by-4 matrix.

A = [0 1 -2 5; -1 0 3 -4; 2 -3 0 6; -5 4 -6 0]

% The matrix is real and has a diagonal of zeros.
%
% Specify skewOption as 'skew' to determine whether the matrix is skew-symmetric.

tf = issymmetric(A,'skew')

% The matrix, A, is skew-symmetric since it is equal to the negation of its nonconjugate transpose, -A.'.
% Copyright 2012 The MathWorks, Inc.