diff options
Diffstat (limited to '52/CH3/EX3.30/Example3_30.sce')
-rwxr-xr-x | 52/CH3/EX3.30/Example3_30.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/52/CH3/EX3.30/Example3_30.sce b/52/CH3/EX3.30/Example3_30.sce new file mode 100755 index 000000000..4668395e3 --- /dev/null +++ b/52/CH3/EX3.30/Example3_30.sce @@ -0,0 +1,16 @@ +//Example 3.30
+//Program to Calculate N from given data
+//fm=5000Hz
+//df=50Hz
+//t=0.5sec
+clear;
+clc ;
+close ;
+fm=5000 //Hz
+df=50 //Hz
+t=0.5 //sec
+N1=2*fm/df;
+N=2;
+while N<=N1, N=N*2,end
+//Displaying the value of N in command window
+disp(N,"N=");
\ No newline at end of file |