Info

This question is closed. Reopen it to edit or answer.

How can I integrate with quadgk when the lower limit is expected to change value because in the end I would like to plot Z vs Eg (the lower limit)

1 view (last 30 days)
function y1 = myfun1(x) e=(exp(x))-1; y1=(x.^2./e); end
Eg=1.05:pi/100:2.6; k=1.38054e-23; T=5800; kt=k*T/1.6e-19; Z = quadgk(@(x)arrayfun(@myfun1,x),Eg,inf); plot(Eg,Z)

Answers (0)

Community Treasure Hunt

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

Start Hunting!