summaryrefslogtreecommitdiff
path: root/165/CH7
diff options
context:
space:
mode:
Diffstat (limited to '165/CH7')
-rw-r--r--165/CH7/EX7.1/ex7_1.sce8
-rw-r--r--165/CH7/EX7.2/ex7_2.sce8
2 files changed, 16 insertions, 0 deletions
diff --git a/165/CH7/EX7.1/ex7_1.sce b/165/CH7/EX7.1/ex7_1.sce
new file mode 100644
index 000000000..4c958d264
--- /dev/null
+++ b/165/CH7/EX7.1/ex7_1.sce
@@ -0,0 +1,8 @@
+//Example 7.1
+clc;
+
+Vertical_attenuation=0.5;
+n=3; //No. of Division from CRO
+//Peak to peak amplitude of the signal
+Vp_p=Vertical_attenuation*n;
+printf('\nPeak to peak amplitude of the signal is %.2f',Vp_p) \ No newline at end of file
diff --git a/165/CH7/EX7.2/ex7_2.sce b/165/CH7/EX7.2/ex7_2.sce
new file mode 100644
index 000000000..bc99be525
--- /dev/null
+++ b/165/CH7/EX7.2/ex7_2.sce
@@ -0,0 +1,8 @@
+//Example 7.2
+clc;
+//Frequency of the signal
+n=4; //No of division/cycle
+time_div=2*10^-6; //Time divsion Control
+TP=time_div*n; //Period of the signal
+f=1/TP; //Frequency of the signal
+printf('\nFrequency of the signal is %d',f) \ No newline at end of file