
How to write exponential integral in equation?
6 views (last 30 days)
Show older comments
Dhawal Beohar
on 30 Nov 2020
Commented: Dhawal Beohar
on 30 Nov 2020

How can I write above equation in matlab code, where E1 is exponential integral.
0 Comments
Accepted Answer
Ameer Hamza
on 30 Nov 2020
Edited: Ameer Hamza
on 30 Nov 2020
You can use expint() function
N = 1;
U = 2;
r = log2(exp(1))*exp(N/U)*expint(N/U)
Result
>> r
r =
1.3315
If you have symbolic toolbox, you can write the symbolic expression
syms U N
r = log2(exp(sym(1)))*exp(N/U)*expint(N/U)
Result from the live script

More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!