blob: 1af2d0c9f6a6ad67f17b3d4173aaf1418f892de2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc;
R2=2200; //ohm
R1=10000; //ohm
Vcc=10; //volt
Vb=Vcc*(R2/(R1+R2)); //volt
Ve=Vb-0.7; //volt
Re=1000; //ohm
Ie=Ve/Re; //Ampere
re=0.025/Ie; //Ohm
disp('ohm',re,"re=");//The answers vary due to round off error
|