1
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="fft2">
4
<refname>fft2</refname>
5
<refpurpose>two-dimension fast Fourier
10
<title>Calling Sequence</title>
16
<title>Arguments</title>
21
<para>a vector/matrix/array (Real or Complex)</para>
27
<para>a vector/matrix/array (Real or Complex)</para>
33
<para>integer, number of rows.</para>
39
<para>integer, number of columns.</para>
45
<title>Description</title>
46
<programlisting role=""><![CDATA[
4
<refname>fft2</refname>
5
<refpurpose>two-dimension fast Fourier
10
<title>Calling Sequence</title>
16
<title>Arguments</title>
21
<para>a vector/matrix/array (Real or Complex)</para>
27
<para>a vector/matrix/array (Real or Complex)</para>
33
<para>integer, number of rows.</para>
39
<para>integer, number of columns.</para>
45
<title>Description</title>
46
<programlisting role=""><![CDATA[
47
47
This functions performs the two-dimension discrete Fourier transform.
48
48
]]></programlisting>
50
<literal>y=fft2(x)</literal>y and x have the same size
53
<literal>y=fft2(x,m,n):</literal> If <literal>m</literal> (respectively
54
<literal>n</literal>) is less than the rows number (respectively columns) of
55
<literal>x</literal> then the <literal>x</literal> rows number (resp. columns) is
56
truncated, else if m (resp. <literal>n</literal>) is more than the rows number
57
(resp. columns) of <literal>x</literal> then <literal>x</literal> rows are completed
58
by zero (resp. columns) .
61
if <literal>x</literal> is a matrix then <literal>y</literal> is a matrix, if
62
<literal>x</literal> is a hypermatrix then <literal>y</literal> is a hypermatrix, with
63
the size of the first dimension of <literal>y</literal> is equal to
64
<literal>m</literal>, the size of the second dimension of <literal>y</literal> is
65
equal to <literal>n</literal>, the size of the ith dimension of <literal>y</literal>
66
(for i>2, case hypermatrix) equal to the size of the ith dimension of
67
<literal>x</literal>. (i.e size(y,1)=m, size(y,2)=n and size(y,i)=size(x,i) for
72
<title>Examples</title>
73
<programlisting role="example"><![CDATA[
50
<literal>y=fft2(x)</literal>y and x have the same size
53
<literal>y=fft2(x,m,n):</literal> If <literal>m</literal> (respectively
54
<literal>n</literal>) is less than the rows number (respectively columns) of
55
<literal>x</literal> then the <literal>x</literal> rows number (resp. columns) is
56
truncated, else if m (resp. <literal>n</literal>) is more than the rows number
57
(resp. columns) of <literal>x</literal> then <literal>x</literal> rows are completed
58
by zero (resp. columns) .
61
if <literal>x</literal> is a matrix then <literal>y</literal> is a matrix, if
62
<literal>x</literal> is a hypermatrix then <literal>y</literal> is a hypermatrix, with
63
the size of the first dimension of <literal>y</literal> is equal to
64
<literal>m</literal>, the size of the second dimension of <literal>y</literal> is
65
equal to <literal>n</literal>, the size of the ith dimension of <literal>y</literal>
66
(for i>2, case hypermatrix) equal to the size of the ith dimension of
67
<literal>x</literal>. (i.e size(y,1)=m, size(y,2)=n and size(y,i)=size(x,i) for
72
<title>Examples</title>
73
<programlisting role="example"><![CDATA[
74
74
//Comparison with explicit formula
75
75
a=[1 2 3 ;4 5 6 ;7 8 9 ;10 11 12]