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 /2414/CH2/EX2.4/Ex2_4.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 '2414/CH2/EX2.4/Ex2_4.sce')
-rwxr-xr-x | 2414/CH2/EX2.4/Ex2_4.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2414/CH2/EX2.4/Ex2_4.sce b/2414/CH2/EX2.4/Ex2_4.sce new file mode 100755 index 000000000..49453e520 --- /dev/null +++ b/2414/CH2/EX2.4/Ex2_4.sce @@ -0,0 +1,17 @@ +clc;
+
+//page no 40
+//problem 2.4
+//all frequencies are in Hz
+f=0;
+f1=500; //fundamental freq.
+f2=1000; f3=1500; //harmonics
+disp(f3,f2,f1,f,'(a) The frequencies in signal are');
+//for plot
+fHz=[0:1600];
+Cn=[5 zeros(1:f1-1) 8 zeros(f1+1:f2-1) 6 zeros(f2+1:f3-1) 3 zeros(f3+1:1600)]
+clf
+plot2d(fHz,Cn,[3],rect=[-0.5,0,1550,10])
+xtitle('Linear amplitude spectrum','f,Hz','Cn(V)')
+xgrid
+disp('(c) The required bandwidth is 1500 Hz');
|