How to plot the Total emission curve of the sun?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi everyone, I have been trying to plot the total emission curve of the sun using planks formula: using this code: w= 300:0.5:700; h= 6.62*10^-34; k= 1.38*10^-23; c= 2.9979*10^8; T= 5800; Intensity = (2*pi*h*c*(w.^-5))./(exp((h*c)./(w.*k*T))-1); plot(w,Intensity) The curve should be a polynomial so it should increase in value and then decrease, however when I plot the data I obtain an exponential increase but no decrease, Is there something wrong with the math or my code? Thanks.
댓글 수: 0
답변 (1개)
Ameer Hamza
2018년 5월 6일
You are using wrong units. lambda have units in nanometer. Change the first line like this and try
w = (300:0.5:700)*1e-9;
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Fit Postprocessing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!