blob: fdc678d91eff7e26012a6f8130581ff89593e1d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Example 6.1
//MAXIMA SCILAB TOOLBOX REQUIRED FOR THIS PROGRAM
//Program to Calculate Group Delay and Phase Delay
//y(n)=0.25x(n)+x(n-1)+0.25x(n-2)
clear;
clc ;
close ;
//w=poly(0,"w");
syms w;
theeta=-w;
gd= -diff (theeta,w); //Group Delay
pd=-theeta/w; //Phase Delay
disp(gd,'GROUP DELAY =');
disp(pd,'PHASE DELAY =');
|