Last active
December 24, 2015 02:39
-
-
Save amitjamadagni/6732416 to your computer and use it in GitHub Desktop.
plot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function i = diodeequation(Dn,Ln,Na,Dp,Lp,Nd,ni,A) | |
io = q*A*((Dn/Ln)*(ni^2/Na) + (Dp/Lp)*(ni^2/Nd)); | |
V = (K*T/q)*ln(i/io + 1); | |
i = 0: 0.01: inf; | |
plot(i,V); | |
// Calling the function as follows | |
x = i(with all the inputs) | |
//output should be a graph ?? is this right ?? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment