blob: c77a0840beee70e8de4fd48f6c5c3aa5d575d58f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Variable Declaration
delF=200 //Peak Deviation(kHz)
f=0.8 //Test tone frequency (kHz)
//Calculation
m=delF/f //Modualtion index
B=2*(delF+f) //Bandwidth of the signal(kHz)
//Results
printf("The modulation index is %.f" , m)
printf("Bandwidth of the signal is %.1f kHz",B)
|