File: buttmag.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 (30 lines) | stat: -rw-r--r-- 716 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

buttmag(1)                     Scilab Function                     buttmag(1)
NAME
  buttmag -  response of Butterworth filter

CALLING SEQUENCE
  [h]=buttmag(order,omegac,sample)

PARAMETERS

  order     : integer : filter order

  omegac    : real : cut-off frequency in Hertz

  sample    : vector of frequency where buttmag is evaluated

  h         : Butterworth filter values at sample points

DESCRIPTION
  squared magnitude response of a Butterworth filter omegac = cutoff fre-
  quency ; sample = sample of frequencies

EXAMPLE
  //squared magnitude response of Butterworth filter
  h=buttmag(13,300,1:1000);
  mag=20*log(h)'/log(10);
  plot2d((1:1000)',mag,[2],"011"," ",[0,-180,1000,20])

AUTHOR
  F. D.