Exponential decay - MATLAB Cody - MATLAB Central

Problem 44478. Exponential decay

Difficulty:Rate

Many dynamic processes can be approximated as an exponential decay. This applies to radioactive decay, some chemical reactions, ageing of LEDs etc. See https://en.wikipedia.org/wiki/Exponential_decay for more background.

Assume that the process starts with a normalised value of x(0) = 1, and it follows the following decay law:

x'(t) = - x(t) / tau

where x'(t) is the first derivative of x(t), and time constant tau is 2.

Write a function that returns the value x for a given input t. It should be able to deal with a vector input.

Solution Stats

66.67% Correct | 33.33% Incorrect
Last Solution submitted on Feb 21, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers24

Suggested Problems

More from this Author1

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!