From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2414/CH2/EX2.4/Ex2_4.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 2414/CH2/EX2.4/Ex2_4.sce (limited to '2414/CH2/EX2.4/Ex2_4.sce') 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'); -- cgit