How to solve this equation for ( I ) ?
Afficher commentaires plus anciens
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
le 23 Fév 2013
Modifié(e) : Azzi Abdelmalek
le 23 Fév 2013
You have two unknwn variables Isc and I
Réponses (1)
the cyclist
le 23 Fév 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.
Catégories
En savoir plus sur Structural Mechanics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!