Matlab draws Planck formula curve


In 1900, German physicist M. Planck established the correct formula for black body radiation based on quantum theory, the Planck formula.

Insert picture description here
It gives the distribution of energy density of radiation field according to wavelength, and is one of the basic formulas of thermal radiation theory.

1. Determine the wavelength and temperature range.

t is [3500 4000 4500 5000 5500]K, and the
wavelength lamda is (1:10:5001).*10^(-9);

2. Run the program and the results are as follows.

Insert picture description here

3. Source code.

%% 波长版
clc,clear
 t=[3500 4000 4500 5000 5500];
lamda=(1:10:5001).*10^(-9);
[LAMDA T]=meshgrid(lamda,t);
 I_lamda=planck_lamda(LAMDA,T);
 % surf(LAMDA,T,I_lamda);
 for i=1:5
 plot(LAMDA(i,:),I_lamda(i,:),'Color',[i/6 i/6 i/6])
 hold on
 end
legend('3500K','4000K','4500K','5000K','5500K')

Guess you like

Origin blog.csdn.net/peter_young1990/article/details/114404696