How to solve this equation for ( I ) ?

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 commentaire

Azzi Abdelmalek
Azzi Abdelmalek le 23 Fév 2013
Modifié(e) : Azzi Abdelmalek le 23 Fév 2013
You have two unknwn variables Isc and I

Connectez-vous pour commenter.

Réponses (1)

the cyclist
the cyclist le 23 Fév 2013

0 votes

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.

Question posée :

le 23 Fév 2013

Community Treasure Hunt

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

Start Hunting!

Translated by