%% Create Nonsymmetric Hankel Matrix
% Create a nonsymmetric Hankel matrix with specified column and row vectors.

c = [2 4 6];
r = [6 5 4 3 2 1];
hankel(c,r)

% Create another nonsymmetric Hankel matrix. If the last element of the column vector does not match the first element of the row vector, hankel issues a warning and uses the last element of the column for the anti-diagonal element.

c = [1 2 3];
r = [4 5 7 9];
hankel(c,r)

%
% Copyright 2020 The MathWorks, Inc.