summaryrefslogtreecommitdiff
path: root/876/CH8/EX8.7/Ex8_7t.txt
diff options
context:
space:
mode:
Diffstat (limited to '876/CH8/EX8.7/Ex8_7t.txt')
-rwxr-xr-x876/CH8/EX8.7/Ex8_7t.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/876/CH8/EX8.7/Ex8_7t.txt b/876/CH8/EX8.7/Ex8_7t.txt
new file mode 100755
index 000000000..b31d94cfa
--- /dev/null
+++ b/876/CH8/EX8.7/Ex8_7t.txt
@@ -0,0 +1,15 @@
+//caption:Find peak amplitude and frequency of the signal
+//Ex8.7
+clc
+clear
+close
+V=0.5//vertical attenuator(in V/division)
+Vo=10^-6//horizontal attenuator(in second/division)
+n=6//number of divisions on vertical axis
+N=5//number of division for complete one cycle
+V1=V*n
+Vp=V1/2
+disp(Vp,'peak amplitude(in V)=')
+T=Vo*N
+f=1/T
+disp(f,'frequency of the signal(in Hz)=') \ No newline at end of file