summaryrefslogtreecommitdiff
path: root/3542/CH6/EX6.2/Ex6_2.sce
blob: 7de3c2019a24bcc45592ccb3aafac339c8d1c360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Example no 6.2
// To compute a)the peak frequency deviation b)the modulation index.
// Page no. 265

clc;
clear all;

// Given data
kf=10*10^3;                                                     // Frequency deviation constant gain in Hz/V
fm=4*10^3;                                                      // Modulating frequency in Hz
A=4;                                                            // Maximum instantaneous value of input signal in V

// To compute the peak frequency deviation
deltaf=A*kf;                                                   // The peak frequency deviation in Hz

// To compute the modulation index
betaf=deltaf/fm;                                               // The modulation index

// Displaying the result in command window
printf('\n The peak frequency deviation = %0.0f kHz',deltaf*10^-3);
printf('\n The modulation index = %0.0f',betaf);