integration of number array with variable
7 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Torsten
2022-2-23
Ez=...;
TEz = ...;
q=...;
mstar=...;
h=...;
kB=...;
T=...;
J = zeros(size(T));
for i = 1:numel(T)
Y = TEz.*log((1+exp((EF1-Ez-EC1)/(kB*T(i))))./(1+exp((EF2-Ez-EC2)/(kB*T(i)))));
J(i) = q*mstar/(2*pi^2*h^3)*kB*T(i)*trapz(Ez,Y);
end
plot(T,J)
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
