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 /2951/CH5/EX5.2/ex_5_2.sce | |
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 '2951/CH5/EX5.2/ex_5_2.sce')
-rwxr-xr-x | 2951/CH5/EX5.2/ex_5_2.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2951/CH5/EX5.2/ex_5_2.sce b/2951/CH5/EX5.2/ex_5_2.sce new file mode 100755 index 000000000..8eceeb2df --- /dev/null +++ b/2951/CH5/EX5.2/ex_5_2.sce @@ -0,0 +1,24 @@ +clc;
+clear;
+
+//x(t)=2sin(4000*pi*t)+3sin(5000*pi*t)+4sin(8000*pi*t)
+
+fh=8000/2;
+fl=4000/2;
+
+disp(fh,"a) Highest Frequency component(in Hz)");
+disp(fl,"Lowest Frequency component(in Hz)");
+
+fs=2*fh;
+disp(fs," Minimum Sampling frequency(in Hz)");
+
+Bw=fh-fl;
+disp(Bw," b)Bandwidth(in Hz) is");
+
+n=fh/Bw;
+disp(n,"integer factor");
+
+Fs_new=2*fh/n;
+disp(Fs_new,"Required Sampling frequency in this case(in Hz) is");
+
+
|