summaryrefslogtreecommitdiff
path: root/45/CH1/EX1.1/example_1_1.sce
blob: e7fef44d3b5916b2e868ebec851112dfb60e9388 (plain)
1
2
3
4
5
6
7
8
//Example 1.1
clc;
clear;
f= 5 * 10^6  ; //given
T=1/f; // caculating the time period .
H = 0.05 * 10^-6 / T ; 
printf('Time period of the waveform is T = %f us\n',T); //displaying results 
printf(" Duty cycle H = %f %%",H*100);