summaryrefslogtreecommitdiff
path: root/1997/CH1/EX1.2/example2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1997/CH1/EX1.2/example2.sce')
-rwxr-xr-x1997/CH1/EX1.2/example2.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1997/CH1/EX1.2/example2.sce b/1997/CH1/EX1.2/example2.sce
new file mode 100755
index 000000000..5263c5c7f
--- /dev/null
+++ b/1997/CH1/EX1.2/example2.sce
@@ -0,0 +1,16 @@
+//Chapter-1, Example 1.2, Page 35
+//=============================================================================
+clc;
+clear;
+
+//INPUT DATA
+PRF= 1.2*10^3;//pulse repetitive frequency in Hz
+PI = 0.6*10^-3;//pulse interval in sec
+
+//Calculations
+
+PRT = 1/PRF;//pulse repetition frequency in Hz
+PW = PRT-PI;//pulse width in sec;
+
+//Output
+mprintf('Pulse repetitive time is %3.3f ms\n Pulse width is %3.3f ms',PRT*1000,PW*1000);