Question: Please help! There's no previous code. This is how it was given and it's on MATLAB a) Define a function that computes the probability of
Please help!
There's no previous code. This is how it was given and it's on MATLAB
a) Define a function that computes the probability of an electron being in the lowest energy state as: 1 p = -46 1 + e Your function should take a single value of energy and temperature as inputs and output the probability. You will need to define the function in a separate matlab file, but copy/paste as text here before submitting. Note, Boltzman's constant is kg = 8.62 x 10-s eV when the energy is in electron volts and the temperature in K Kelvin. b) Use the function defined in part a to generate a plot of the probabilty vs. the temperature for three different values of the energy splitting (1 x 10-6ev, 1x 10- eV and 5 x 10-eV). Your final plot should have three different curves corresponding to the three energy splittings and should cover the temperature range from 0 to 100 K. Make sure your axes are reasonable and the plot is properly labeled! I How does the probabilty change as the temperature decreases? What is the limit of the function at high temperatures? c) Copy and modify your code and average value from task 2 (with trials vector) but change it so the probabilty is computed using the function defined in part a. Use an energy splitting of 1 x 10-5 eV and a temperature of 10 K. Note, if you are unable to complete task 2, you can use the code from task 1 for partial credit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
