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/CH5/EX5.5/Ex5_5.sce | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 2414/CH5/EX5.5/Ex5_5.sce (limited to '2414/CH5/EX5.5') diff --git a/2414/CH5/EX5.5/Ex5_5.sce b/2414/CH5/EX5.5/Ex5_5.sce new file mode 100755 index 000000000..95d7bbf62 --- /dev/null +++ b/2414/CH5/EX5.5/Ex5_5.sce @@ -0,0 +1,27 @@ +clc; +clear all; +//page no 152 +//prob no. 5.5 + +//for input spectrum +f=[-20:.001:20]; //x axis +V=[1 zeros(-20+.001:.001:20-.001) 1]; //y axis +clf; +subplot(211); +plot2d(f,V,[5],rect=[-130,0,130,2]) +a=gca(); // Handle on axes entity +a.x_location = "origin"; +a.y_location = "origin"; +xtitle('Input Spectrum','f,kHz',''); +xgrid + +//for output spectrum +f=[-120:.01:120]; //x axis +V=[1 zeros(-120+.01:.01:-80-.01) 1 zeros(-80+.01:0.01:80-0.01) 1 zeros(80+.01:.01:120-.01) 1] +subplot(212); +plot2d(f,V,[5],rect=[-130,0,130,2]) +a=gca(); // Handle on axes entity +a.x_location = "origin"; +a.y_location = "origin"; +xtitle('Output Spectrum','f,kHz',''); +xgrid -- cgit