summaryrefslogtreecommitdiff
path: root/1997/CH11/EX11.4/example4.sce
blob: 839b75408bc80448e985f487cffbad1fef77e434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Chapter-11 example 4
//=============================================================================
clc;
clear;
PW  = 1.5*10^-6;//pulse width in sec
PRF = 2000//per second

//Calculations
Dc = PW*PRF;//duty cycle

//Output
mprintf('Duty Cycle is %e',Dc); 
//==========end of program=====================================================