Question: Using MATLAB: The current flowing through a semiconductor diode is given by: Where: Id = the current through the diode in amps Vd = the

Using MATLAB:

The current flowing through a semiconductor diode is given by:

Using MATLAB: The current flowing through a semiconductor diode is given by:

Where: Id = the current through the diode in amps

Vd = the voltage across the diode in volts

Io = the leakage current of the diode in amps

q = the charge of an electron, 1.602 x 10^-19 coulombs

k = Boltzmanns constant, 1.38 x 10^-23 joule/K

T = temperature in kelvins (K)

For this problem, Io = 2.0 x 10^-6 amps. Write a program to calculate the current flowing through the diode for all voltages (Vd) from -1V to 0.6V, with 0.01 steps, for temperatures (T) of 75 degrees F, 100 degrees F, and 125 degrees F. Create a plot of the current as a function of applied voltage, with the curves for the different temperatures appearing as different colors. In other words, you have one graph with one set of axes (Id vs. Vd) but three lines (each a different color) appearing on it (one for each value of T). You may use example 2.3 on page 68 to determine how to convert degrees F to temperature in kelvins (K). Also, in your program, you should start with the following initialized variables:

i0 = 2.0e-6; %amps

k = 1.38e-23; %joule/K

q = 1.602e-19; %coulombs

vd = -1.0:0.01:0.6; %volts

temp_f = [75 100 125]; %temps in deg F

You need to use a for loop (appropriately) to correctly complete the exercise. You need to show me a legend on your plot so I know what temperature is represented by each color. Remember that e^x translates to exp(x) in MATLAB. Submit your M-file and your plot.

Td Id-lo* (ek7-1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!