14
14
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="m2sci_hankel">
16
<refname>hankel (Matlab function)</refname>
17
<refpurpose>Hankel matrix</refpurpose>
20
<title>Matlab/Scilab equivalent</title>
21
<informaltable border="1" width="100%">
24
<emphasis role="bold">Matlab</emphasis>
27
<emphasis role="bold">Scilab</emphasis>
32
<programlisting role="example">hankel</programlisting>
35
<programlisting role="example">hank</programlisting>
41
<title>Particular cases</title>
42
<para>The main difference between Scilab and Matlab function is that they
43
do not use the same input values to build an Hankel matrix. If in Matlab,
44
you just have to give a column vector (and eventually a row vector),
45
Scilab function requires the size of the Hankel matrix to build and a
46
covariance sequence vector for this matrix. (See syntax below)
50
<title>Examples</title>
51
<informaltable border="1" width="100%">
54
<emphasis role="bold">Matlab</emphasis>
57
<emphasis role="bold">Scilab</emphasis>
62
<programlisting role="example">H1 = hankel(C1)
67
<programlisting role="example">function H = hankel(C, R)
71
COV = [matrix(C, 1, -1), zeros(1, N)];
76
COV = [matrix(C, 1, -1), matrix(R(2:$), 1, -1)];
16
<refname>hankel (Matlab function)</refname>
17
<refpurpose>Hankel matrix</refpurpose>
20
<title>Matlab/Scilab equivalent</title>
21
<informaltable border="1" width="100%">
24
<emphasis role="bold">Matlab</emphasis>
27
<emphasis role="bold">Scilab</emphasis>
32
<programlisting role="example">hankel</programlisting>
35
<programlisting role="example">hank</programlisting>
41
<title>Particular cases</title>
42
<para>The main difference between Scilab and Matlab function is that they
43
do not use the same input values to build an Hankel matrix. If in Matlab,
44
you just have to give a column vector (and eventually a row vector),
45
Scilab function requires the size of the Hankel matrix to build and a
46
covariance sequence vector for this matrix. (See syntax below)
50
<title>Examples</title>
51
<informaltable border="1" width="100%">
54
<emphasis role="bold">Matlab</emphasis>
57
<emphasis role="bold">Scilab</emphasis>
62
<programlisting role="example">H1 = hankel(C1)
67
<programlisting role="example">function H = hankel(C, R)
71
COV = [matrix(C, 1, -1), zeros(1, N)];
76
COV = [matrix(C, 1, -1), matrix(R(2:$), 1, -1)];