This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: solution for k between 0 and π/L , this is the solution you should find. The name of this program must be QWell.m Example output for Part C: >> QWell Enter a positive number for L: 2 Enter a positive number for b: 5 k = 1.31 >> Part A (15 points) Consider the function. y = 5 e − x − 3 2 Your job is to write a MatLab program which asks the user to enter values xmin and xmax , and plots this function from xmin to xmax using a logarithmic y-axis, and calculates the area under this curve between xmin and xmax . The name of this program must be gaussian.m Your output should look like the following: >> gaussian Enter a value for xmin: -1 Enter a value for xmax: 4 The area under the curve between x=-1.00 and x=4.00 is 8.16 >>...
View Full Document
This note was uploaded on 08/06/2010 for the course ENGR 3 taught by Professor Ben-yaakov during the Summer '08 term at UCSB.
- Summer '08