Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

How would I go about solving this in MatLab Part 2 The spectral radiance emitted by a blackbody in thermal equilibrium at a definite 3

How would I go about solving this in MatLab
image text in transcribed
Part 2 The spectral radiance emitted by a blackbody in thermal equilibrium at a definite 3 semperature is described by Planck's Law B(2) AK where, B-Spectral radiance [W/ (sr nm)] (NOTE: sr-Steradan . SI unit for solid h-Planck constant-6.62607 10'34Js le) -wavelength [mm] J/K Boltzmann constant-1.38065 x 10 T-temperature [K] e -speed of light-2.99x 10nms Create a function in Matlab, which takes twe vectors, namely, a wavelength vector (lamdaVec) and a temperature vector (Temp), as inputs, and provides three outputs (mentioned at the end) Using lamdaVec [525 750 1200] nm and Temp-[7200 5680 4000] K, do the following within the function a) Initialize a 3x3 array named spectral such that all the elements are zcro b) Using indexing and fetching, calculate the spectral radiance for each combination of wavelength and temperature i. Set the top-left element of spectral to hold the value for a -525 and 7-7200 ii. Set the remaining 8 elements in spectral with the following format a. As one moves down through the rows in a column, the wavelength goes from shortest to longest (525 nm1200 nm) b. As one moves across the columns in a row, the temperature goes from hottest 10 coolest (7200 K 4000 K) c) The function should have three outputs (3) i. the updated array spectral ii vector consisting of all three spectral radiance valucs for T-7200 K ii. a scalar value approximating the bluc iradiance of our sun (-525 mm, T-5680 K). Name the function as: Team HW4AB2 P2 Copy the code in function file as well as the inputs created, and outputs generated in the command window in the Word document under the heading Part 2 Clearly indicate the function and the inputs as well as the outputs from the command window Part 2 The spectral radiance emitted by a blackbody in thermal equilibrium at a definite 3 semperature is described by Planck's Law B(2) AK where, B-Spectral radiance [W/ (sr nm)] (NOTE: sr-Steradan . SI unit for solid h-Planck constant-6.62607 10'34Js le) -wavelength [mm] J/K Boltzmann constant-1.38065 x 10 T-temperature [K] e -speed of light-2.99x 10nms Create a function in Matlab, which takes twe vectors, namely, a wavelength vector (lamdaVec) and a temperature vector (Temp), as inputs, and provides three outputs (mentioned at the end) Using lamdaVec [525 750 1200] nm and Temp-[7200 5680 4000] K, do the following within the function a) Initialize a 3x3 array named spectral such that all the elements are zcro b) Using indexing and fetching, calculate the spectral radiance for each combination of wavelength and temperature i. Set the top-left element of spectral to hold the value for a -525 and 7-7200 ii. Set the remaining 8 elements in spectral with the following format a. As one moves down through the rows in a column, the wavelength goes from shortest to longest (525 nm1200 nm) b. As one moves across the columns in a row, the temperature goes from hottest 10 coolest (7200 K 4000 K) c) The function should have three outputs (3) i. the updated array spectral ii vector consisting of all three spectral radiance valucs for T-7200 K ii. a scalar value approximating the bluc iradiance of our sun (-525 mm, T-5680 K). Name the function as: Team HW4AB2 P2 Copy the code in function file as well as the inputs created, and outputs generated in the command window in the Word document under the heading Part 2 Clearly indicate the function and the inputs as well as the outputs from the command window

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started