File: convol.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (48 lines) | stat: -rw-r--r-- 1,030 bytes parent folder | download | duplicates (2)
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
.TH convol 1 "April 1993" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
convol - convolution
.SH CALLING SEQUENCE
.nf
[y]=convol(h,x)
[y,e1]=convol(h,x,e0)
.fi
.SH PARAMETERS
.TP 10
x,h
:input sequences (\fVh\fR is a "short" sequence, \fVx\fR a "long" one)
.TP
e0
: old tail to overlap add (not used in first call)
.TP
y
: output of convolution
.TP
e1
: new tail to overlap add (not used in last call)
.SH DESCRIPTION
calculates the convolution \fVy= h*x\fR of two
discrete sequences by using the fft.  Overlap add method can be used.
.LP
USE OF OVERLAP ADD METHOD: 
For x=[x1,x2,...,xNm1,xN]
First call is [y1,e1]=convol(h,x1); 
Subsequent calls : [yk,ek]=convol(h,xk,ekm1);
Final call : [yN]=convol(h,xN,eNm1);
Finally y=[y1,y2,...,yNm1,yN]
.SH EXAMPLE
.nf
x=1:3;
h1=[1,0,0,0,0];h2=[0,1,0,0,0];h3=[0,0,1,0,0];
x1=convol(h1,x),x2=convol(h2,x),x3=convol(h3,x),
convol(h1+h2+h3,x)
p1=poly(x,'x','coeff')
p2=poly(h1+h2+h3,'x','coeff')
p1*p2
.fi
.SH SEE ALSO
corr, fft, pspect
.SH AUTHOR
F. D , C. Bunks Date 3 Oct. 1988