summaryrefslogtreecommitdiff
path: root/2582/CH3/EX3.20
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2582/CH3/EX3.20
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2582/CH3/EX3.20')
-rwxr-xr-x2582/CH3/EX3.20/Ex3_20.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2582/CH3/EX3.20/Ex3_20.sce b/2582/CH3/EX3.20/Ex3_20.sce
new file mode 100755
index 000000000..f795c70b4
--- /dev/null
+++ b/2582/CH3/EX3.20/Ex3_20.sce
@@ -0,0 +1,14 @@
+//Ex 3.20
+clc;clear;close;
+format('v',6);
+omegaBYomega0=[0 0.5 1 5 10 100];
+//T=omega0/sqrt(omega0^2+omega^2);//Gain
+for i=1:6
+T(i)=1/sqrt(1^2+omegaBYomega0(i)^2);//Gain
+end
+G=20*log10(T);//dB
+A=-20*log10(T);//dB
+fi=-atand(omegaBYomega0);//degree
+disp("omega/omega0 T(j*omega) (G(dB)) A(dB) fi")
+table=[omegaBYomega0' T G A fi'];
+disp(table);