blob: bc99be525ef2e49b274706affc6a4fcd922f54b5 (
plain)
1
2
3
4
5
6
7
8
|
//Example 7.2
clc;
//Frequency of the signal
n=4; //No of division/cycle
time_div=2*10^-6; //Time divsion Control
TP=time_div*n; //Period of the signal
f=1/TP; //Frequency of the signal
printf('\nFrequency of the signal is %d',f)
|