Electrical Diode Current Calculation - MATLAB Cody - MATLAB Central

Problem 42998. Electrical Diode Current Calculation

Difficulty:Rate

In engineering, there is not always a single equation that describes a phenomenon accurately enough to be applied in all instances of that phenomenon. Sometimes it is more useful to use one equation in a set of circumstances, and another equation in a different set of circumstances. One example of this is with electrical diodes. A simplification of the approximation of the electrical characteristics of a diode uses these two simple equations:

i = I_s * exp(v/V_T) for v > V_T

i = −I_s for v ≤ V_T

Where V_T = 0.026 Volts and I_S = 1*10-8 Amperes. Write a function with one input, the voltage v across this diode, and one output, the current i running through the diode. Use a conditional statement in writing this program.

(Source: 14:440:127 – Introduction to Computers for Engineers – HW3)

Solution Stats

50.21% Correct | 49.79% Incorrect
Last Solution submitted on Mar 14, 2025

Problem Comments

Solution Comments

Show comments

Group

High School Challenge Image
High School Challenge
  • 50 Problems
  • 98 Finishers

Problem Recent Solvers772

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page