summaryrefslogtreecommitdiff
path: root/2825/CH15/EX15.4/Ex15_4.sce
blob: aa2a74f9a008ae73539ff438ad324e77db1d6602 (plain)
1
2
3
4
5
6
7
8
9
10
//Ex15_4 Pg-774
clc

Vmax=600 //peak to peak voltage
Vmin=100 //valley to valley voltage

disp("From figure 15.49, we have")
m=(Vmax-Vmin)/(Vmax+Vmin) //modulation factor
per_m=m*100 //modulation factor in percentage
printf(" \n Modulation factor = %.1f %%",per_m )