integration of number array with variable
조회 수: 1 (최근 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!
