How to solve an implicit handle function with two variables?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I have the following handle function:
Vd = @(V,I) V-I*R;
I = @(V,I) I0*(exp(Vd(V,I))-1);
How can I find I(V)=?
I0,R are constants.
Thanks
0 Kommentare
Antworten (1)
Torsten
am 14 Mär. 2022
I = @(V) -I0 + lambertw(I0*R*exp(I0*R+V))/R;
3 Kommentare
Torsten
am 14 Mär. 2022
Bearbeitet: Torsten
am 14 Mär. 2022
I don't know what you mean by "In reality my functin (I) is more complex then the the Lambert W function".
I = -I0 + lambertw(I0*R*exp(I0*R+V))/R
solves the equation
I = I0*(exp(V-I*R)-1)
for I.
If your equation is more complex, use "fzero" or "fsolve".
Siehe auch
Kategorien
Mehr zu Optimization Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!