Scilab 5.3.3
- Scilab help
- Signal Processing
- How to
- Signal
- analpf
- bilt
- buttmag
- casc
- cepstrum
- cheb1mag
- cheb2mag
- chepol
- convol
- corr
- cspect
- czt
- detrend
- dft
- ell1mag
- eqfir
- eqiir
- faurre
- ffilt
- fft
- fft2
- fftshift
- filt_sinc
- filter
- find_freq
- findm
- frfit
- frmag
- fsfirlin
- group
- hank
- hilb
- hilbert
- iir
- iirgroup
- iirlp
- intdec
- jmat
- kalm
- lattn
- lattp
- lev
- levin
- lindquist
- mese
- mfft
- mrfit
- %asn
- %k
- %sn
- phc
- pspect
- remez
- remezb
- rpem
- sincd
- srfaur
- srkf
- sskf
- syredi
- system
- trans
- wfir
- wiener
- wigner
- window
- yulewalk
- zpbutt
- zpch1
- zpch2
- zpell
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
cheb2mag
response of type 2 Chebyshev filter
Calling Sequence
[h2]=cheb2mag(n,omegar,A,sample)
Arguments
- n
integer ; filter order
- omegar
real scalar : cut-off frequency
- A
attenuation in stop band
- sample
vector of frequencies where cheb2mag is evaluated
- h2
vector of Chebyshev II filter values at sample points
Description
Square magnitude response of a type 2 Chebyshev filter.
omegar
= stopband edge, sample
= vector of
frequencies where the square magnitude h2
is desired.
Examples
//Chebyshev; ripple in the stopband n=10;omegar=6;A=1/0.2;sample=0.0001:0.05:10; h2=cheb2mag(n,omegar,A,sample); plot(sample,log(h2)/log(10),'frequencies','magnitude in dB') //Plotting of frequency edges minval=(-max(-log(h2)))/log(10); plot2d([omegar;omegar],[minval;0],[2],"000"); //Computation of the attenuation in dB at the stopband edge attenuation=-log(A*A)/log(10); plot2d(sample',attenuation*ones(sample)',[5],"000")
See Also
- cheb1mag — response of Chebyshev type 1 filter
<< cheb1mag | Signal Processing | chepol >> |