diff options
Diffstat (limited to '876/CH8/EX8.2/Ex8_2t.txt')
-rwxr-xr-x | 876/CH8/EX8.2/Ex8_2t.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/876/CH8/EX8.2/Ex8_2t.txt b/876/CH8/EX8.2/Ex8_2t.txt new file mode 100755 index 000000000..edcb5170d --- /dev/null +++ b/876/CH8/EX8.2/Ex8_2t.txt @@ -0,0 +1,12 @@ +//caption:Find peak to peak amplitude of the signal and frequency of the signal
+//ex8.2
+clc
+clear
+close
+V=0.5//vertical attenuation(in V/division)
+n=4//number of divisions of vertical axis
+P=V*n
+disp(P,'peak to peak amplitude of the signal(in V)=')
+T=P*n
+f=1/T
+disp(f,'frequency of the signal(in Hz)=')
\ No newline at end of file |