diff options
Diffstat (limited to '3554/CH7/EX7.2/Ex7_2.sce')
-rw-r--r-- | 3554/CH7/EX7.2/Ex7_2.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/3554/CH7/EX7.2/Ex7_2.sce b/3554/CH7/EX7.2/Ex7_2.sce new file mode 100644 index 000000000..964e9bda6 --- /dev/null +++ b/3554/CH7/EX7.2/Ex7_2.sce @@ -0,0 +1,19 @@ +// Exa 7.2
+
+clc;
+clear all;
+
+//Given data
+// Refering waveform shown in fig 7.50 on page no. 211
+
+div=4; // No of horizontal divisions for One cycle
+// Given data
+time_div= 2; // Time per div control in micro sec/div
+
+// Solution
+
+// The period of signal is given as T=(time/div) *(No of div/ cycle);
+T=time_div *10^-6 * div/1 ; // Time period is calculated over 1 cycle
+F= 1/T; // Frequency is inverse of time period
+
+printf(' The frequency of signal = %d kHz \n',F/1000);
|