File: gauss.cat

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 (36 lines) | stat: -rw-r--r-- 805 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

gauss(2)                       Scilab Function                       gauss(2)
NAME
  gauss -  Gaussian window

  Author: Paulo Goncalves

  Returns a Gaussian window

Usage

  Win = gauss(N[,A])
Input parameters
       o N :  Positive integer Number of points defining the time support of
         the window
       o A : Real positive scalar Attenuation in dB at the end of the window
         (10(-A)). Default value is A = 2.
Output parameters
       o Win : real vector [1,N] Gaussian window in time.
See also:
  mexhat, morlet

Example:

  t = linspace(-1,1,128) ;
  Win1 = gauss(128,2) ;
  Win2 = gauss(128,5) ;

   Vizualisation - Matlab

  plot(t,win1,'b',t,win2,'r') ;
  legend('Gaussian window 1','Gaussian window 2')

   Vizualisation - Scilab

  plot2d([t(:) t(:)],[Win1(:) Win2(:)],[17 19])