summaryrefslogtreecommitdiff
path: root/978/CH9/EX9.2/Example9_2.sce
blob: 4492eac521e3cc386786726574b229ef8049b7b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//chapter-9,Example9_2,pg 502

N=22//no. of acquistioned data

delt=2*10^-3//time period

n=4//4th DFT coeff.

q=3//no. of discrete points

//An=(2/N)*V(n)*cos((2*%pi*n*q)/N)

printf("A4=(1/11)V(4)cos(12pi/11)\n")

//Bn=(2/N)*V(n)*sin((2*%pi*n*q)/N)

printf("B4=(1/11)V(4)sin(12pi/11)\n")