blob: 412ec2e7e6f292337533a3ef824b75d3d942f06b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
clc;
//Example 1.12
//Page no 25
//Solution
V1=8;
V2=0.2;
V3=0.1;
//(a)
h1=2*1;
disp('kHz',h1,"2nd harmonic = ");
h2=3*1;
disp('kHz',h2,"3rd harmonic = ");
h3=12*1;
disp('kHz',h3,"12th harmonic = ");
//(b)
disp("(b) ")
p1=(V2/V1)*100;
disp('%',p1,"%2nd order = ");
p2=(V3/V1)*100;
disp('%',p2,"%3nd order = ");
THD=([sqrt((0.2^2)+(0.1^2)) ]/8)*100;
disp('%',THD," Total harmonic distortion = ");
|