Skip to content

Instantly share code, notes, and snippets.

View Arunprakash-A's full-sized avatar

Arun Prakash A Arunprakash-A

View GitHub Profile
% ************* Study the Effect of Windowing on FIlter Response************** %
% ************ Author : Arun Prakash A *************************************** %
clc;
clear all;
close all;
step = 0.001;
%Frequency Domain Spec
W=-pi:step:pi; % range of digital frequncy
Wc = -pi/2 : step : pi/2; % cutoff freq
%% Computing FFT for Basic Signals and plot the spectra %%
%% Author: A Arun Prakash Mail:[email protected] %%
clc
close all;
%Generae sin signal of 10 Hz
Fs=1000; % Sampling Frequency > 2 * fmax , here fmax = 10
t=0:(1/Fs):1;
x=sin(2*pi*10*t);