Sign in

Not a member? | Forgot your Password?

Search code

Search tips

Find us on Facebook!





Free PDF Downloads

A Quadrature Signals Tutorial: Complex, But Not Complicated

Understanding the 'Phasing Method' of Single Sideband Demodulation

Complex Digital Signal Processing in Telecommunications

Introduction to Sound Processing

C++ Tutorial

Introduction of C Programming for DSP Applications

Fixed-Point Arithmetic: An Introduction

Cascaded Integrator-Comb (CIC) Filter Introduction

FFT Spectral Analysis Software

See Also

Embedded SystemsFPGA

DSP Code Sharing > Frequency response of window functions for FIR Filter

Frequency response of window functions for FIR Filter

Language: Scilab

Processor: Not Relevant

Submitted by Senthilkumar R on Mar 21 2011

Licensed under a Creative Commons Attribution 3.0 Unported License

Frequency response of window functions for FIR Filter


 

This Program is used to find and plot the Frequency response of
(1) Hanning window (2)Hamming window for M = 11

 
//Program to find and plot the frequency response of
//(1) Hanning window (2)Hamming window for M = 11
clear all;
close;
clc
M = 11;
for n = 1:M
  h_hann_11(n) = 0.5-0.5*cos(2*%pi*(n-1)/(M-1));
  h_hamm_11(n) = 0.54-0.46*cos(2*%pi*(n-1)/(M-1));
end
subplot(2,1,1)
[h_hann_11_M,fr]=frmag(h_hann_11,512);
h_hann_11_M = 20*log10(h_hann_11_M./max(h_hann_11_M));
plot2d(fr,h_hann_11_M,2);
title('Frequency Response 0f Hanning window Filter length M =11')
subplot(2,1,2)
[h_hamm_11_M,fr]=frmag(h_hamm_11,512);
h_hamm_11_M = 20*log10(h_hamm_11_M./max(h_hamm_11_M));
plot2d(fr,h_hamm_11_M,2);
title('Frequency Response of Hamming window Filter length M =11')
 
Rate this code snippet:
2.5
Rating: 2.5 | Votes: 2
 
   
 
posted by Senthilkumar R



Comments


 

rupeshsushir wrote:

11/16/2011
 
Respected Sir,
                    Sir I required MATLAB code for frequency sampling method for FIR filter. If so then please email me. My mail-id is rupeshsushir@gmail.com.

       Thank You.
 

Arun Prakash wrote:

2/22/2012
 
Respected Sir,
    Sir i am doing final year project on filter design analysis and frequency domain for server scheduling and optimization. so please help me to design a fir filter in scilab.If so then please email me. My mail-id is arunsaravanan001@gmail.com

Add a Comment
You need to login before you can post a comment (best way to prevent spam). ( Not a member? )