diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1997/CH1/EX1.2 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1997/CH1/EX1.2')
-rwxr-xr-x | 1997/CH1/EX1.2/example2.sce | 16 |
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);
|