How to solve this equation for ( I ) ?

1 view (last 30 days)
ahmed
ahmed on 23 Feb 2013
q = 1.602e-19; k = 1.381e-23;
Tx = 298.15; Rs = 0.005;
Io = 1e-9; n = 1.3;
V = 0:0.1:0.4;
Isc - I - Io.*( exp((V+(I*Rs))*(q/(n*k*Tx))) -1)==0
  1 Comment
Azzi Abdelmalek
Azzi Abdelmalek on 23 Feb 2013
Edited: Azzi Abdelmalek on 23 Feb 2013
You have two unknwn variables Isc and I

Sign in to comment.

Answers (1)

the cyclist
the cyclist on 23 Feb 2013
You should be able to use
my_function = @(I) Isc - I - Io.*( exp((V+(I*Rs))*(q/(n*k*Tx))) -1);
I_solution = fzero(my_function,0)
but as Azzi points out, you have not defined Isc.
Also, you may need to loop over your values of V, for different solutions I.

Categories

Find more on Systems of Nonlinear Equations 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!