summaryrefslogtreecommitdiff
path: root/1529/CH10/EX10.7/10_07.sce
blob: 7e83c4149c0f774d697fd3d4c761f4ee936b46f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Chapter 10, Problem 7, figure 10.17
clc;
tc = 100e-6;             // in s/cm
Vc = 20;                 // in V/cm
w = 5.2;                  // in cm ( width of one complete cycle )
h = 3.6;                  // in cm ( peak-to-peak height of the display )

//calculation:
T = w*tc
f = 1/T
ptpv = h*Vc

printf("\n (a)The periodic time, T = %.2f ms\n", T*10^3)
printf("\n (b)Frequency, f = %.2f kHz\n",f/1000)
printf("\n (c)The peak-to-peak voltage = %.0f V\n",ptpv)