summaryrefslogtreecommitdiff
path: root/863/CH3/EX3.3/Ex3_3.txt
blob: 25901fdb21ca4f73946d6d2b9c6938b62d2e8f26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Caption:Calculate resistance and amplitude of output signal
//Ex3.3
clc;
clear;
close;
E=2//Input voltage(in volts)
v=0.5//Input noise voltage(in volts)
Vf=0.7//Forward diode voltage(in volts)
if=1//Forward current of diode(in mA)
V=E-Vf
R=V/if
disp(V,R,'Resistance(in kilo ohm) and Output signal amplitude(in volts)=')