plot the given equation in the interval of x=[-1 3]
3 views (last 30 days)
Show older comments
y = (10.^(-19)).*(exp((x-(y.*0.1))/0.026)-1)
3 Comments
Walter Roberson
on 28 Oct 2021
Yes? And how does that answer KSSV's question ?
I have to say, it does not look like the diode equation to me... https://www.pveducation.org/pvcdrom/pn-junctions/diode-equation The diode equation only has voltage as its input -- unless you are using non-ideal diodes in which case n could be input as well.
Answers (1)
Sam Chak
on 28 Oct 2021
Hi arun p
If the equation cannot be expressed explicitly as in y versus x, then such equation is an implicit function, , like the circle equation. To plot an implicit equation, you can use the fimplicit function. For more info, please visit:
fimplicit(@(x,y) y - (10.^(-19)).*(exp((x-(y.*0.1))/0.026)-1), [-1 3 -2 20])
You can compare with the diode plot here:
0 Comments
See Also
Categories
Find more on Electromechanical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!