Question: Create m-file scripts/functions to solve problem in MATLAB A substance is said to be subject to exponential decay if it decreases at a rate proportional

Create m-file scripts/functions to solve problem in MATLABCreate m-file scripts/functions to solve problem in MATLAB A substance is said

A substance is said to be subject to exponential decay if it decreases at a rate proportional to its value. Symbolically, this can be expressed as the following differential equation, where N is the quantity and L (lambda) is a positive number called the decay constant: dN/dt = -LN The solution to this equation is: N(t) = N(0)e^Lt Here N(t) is the quantity at integer time t, and N(0) is the (initial) quantity (at time t=0) and L is the decay constant. Larger decay constants make the quantity vanish much more rapidly. Use this fact to create a test table and then write the function called exp Decay (with three arguments N(0), L, t and one return value N(t)) to solve the problem. Use your test table to test your function. Show how to call your function and save the returned value in a variable named future Quantity. Design will be done in lecture or lab

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!