blob: c8f91059b40242f090880daa10fcea9149dd93b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Example 14.2
format('v',6)
clc;
clear;
close;
// given data
I= 4;// in mA
I=I*10^-3;// in A
V1=0.5;// voltage across diode in V
R=100;// in Ω
// The input voltage
V= V1+I*R;// in V
disp(V,"The input voltage in volts is : ")
|