File: fft1d.man

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (64 lines) | stat: -rw-r--r-- 992 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.TH "fft1d" 2 " July 3rd 1997" "Fractales Group" "Scilab Function"
.so ../sci.an
.SH NAME
fft1d - Operates a column-wise direct or inverse FFT
.sp
Author: Paulo Goncalves
.sp
Operates a column-wise direct or inverse FFT on a matrix
.sp
.sp
.SH Usage
.sp
.ft CR
.nf
Y = fft1d(X,DirInv) ;
.fi 
.ec
.ft P
.sp
.SH Input parameters


.RS

.TP
o 
\fBX\fP : Real or complex valued matrix \f(CR[\fPrx,cx\f(CR]\fP

.TP
o 
\fBDirInv\fP : +1 / -1 flag 
-1  Direct Fast Fourier Transform 
+1  Inverse Fast Fourier Transform
.RE

.SH Output parameters


.RS

.TP
o 
\fBY\fP : Real or complex valued matrix \f(CR[\fPrx,cx\f(CR]\fP 
Each column of \fIY\fP contains the FFT (resp IFFT) of the corresponding column of \fIX\fP
.RE

.SH See also:
fft
.SH Example:
\fI Matrix synthesis: \fP 
.sp
.ft CR
.nf
t = linspace( 0,1,128 ) ;
f0 = [4 8 16 32]
X = sin( 2*%pi*t(:)*f0 ) ;
Y = abs( fft1d( X , -1 ) ) ;
Y = [Y(65:128,:) ; Y(1:64,:)] ;
f = linspace(-64,63,128) ;
plot2d(f(ones(4,1),:)',Y) ;
.fi 
.ec
.ft P
.sp