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.53% Correct | 49.47% Incorrect
Last Solution submitted on May 15, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Group

Guess the Logic! Image
Guess the Logic!
  • 17 Problems
  • 241 Finishers

Problem Recent Solvers850

Problem Tags

Community Treasure Hunt

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

Start Hunting!