Question: All three questions for this MATLAB Program (14 nloads/CompPhys HW02.pdf Problem 1 Create a function which caleulates the spectral energy density us(A, T) of a
All three questions for this MATLAB Program
(14 nloads/CompPhys HW02.pdf Problem 1 Create a function which caleulates the spectral energy density us(A, T) of a black body in thermal equilibrium: Temperature T and wavelength should be the variables of this user-defined function. The Boltzmann constant kn and Planck constant h should be defined in the main m file A should be specified in units 3 points Problem, 2 Use the Matlab functions fplot() and plot() to create two plots of (AT) for the spectral range from the infrared ( = 10 fan) to the UV spectral range ( = 300 nm) for three different temperatures Ti = 2000 K, T, 4000 K, and T3 = 6000 K. Hint: Use the Matlab command hold on and hold off to combine the spectra in one figure. Uise the Matlab command figure) to display both figures simultaneously 3 points Problem 3 Create a "publication ready" igure for Problem 2 using either fplot or plotO. The figure shoulkd contain axis labels and legendls. Use different colors or line styles for the graphs Ti- 2000 K. T; = 4000 K, T3 6000 K. Create vertical lines indicating the maximum spotral energy density Label those vertical lines with the valnes for us2000 K)Jsm. Round the max values appropriately 4 points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
