Question: In Matlab I need help creating this code stion 5 Question 5 . Many mathematical models in engineering use the exponential function. The general form

In Matlab I need help creating this code
 In Matlab I need help creating this code stion 5 Question

stion 5 Question 5 . Many mathematical models in engineering use the exponential function. The general form of the expo- nential decay function is: 9(t) = Ae" where A is the initial value at t = 0, and is the time constant for the function. Write a script to study the effect of the time constant. To simplify the equation, set A to 1. Prompt the user for two different time constant and for beginning and ending value for the range of at vector. Then, calculate two different y vectors using the above equation and the two time constants, and graph both exponential functions on the same graph, within the range the user specified. Use a function to compute y. Make one plot red. Be sure to label the graph and both axes. What happens to the decay rate as the time constant gets larger

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!