summaryrefslogtreecommitdiff
path: root/1184/CH7/EX7.1/Ex7_1.sce
blob: fdc9c846e84e47ad343005f7d254171b7d03eb0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Example 7-1, Page No - 210

clear
clc

t = 71.4*10^-6

f = 1/t
fourth_harmonic = f*4
min_sampling = 2*fourth_harmonic

printf('The frequency of the signal is %.1f Khz',f/10^3)
printf('\n The fourth harmonic is %.1f Khz ',fourth_harmonic/10^3)
printf('\n Minimum sampling rate is %.1f khz',min_sampling/10^3)