Calculate a Damped Sinusoid - MATLAB Cody - MATLAB Central

Problem 44948. Calculate a Damped Sinusoid

Difficulty:Rate
The equation of a damped sinusoid can be written as
y = A.ⅇ^(-λt)*cos(2πft)
where A, λ, and f are scalars and t is a vector.
Calculate the output sinusoid y given the inputs below:
  • lambda - λ
  • T - maximum value of t
  • N - number of elements in t
Assume A = 1 and f = 1 . The vector t should be linearly spaced from 0 to T, with N elements.

Solution Stats

26.08% Correct | 73.92% Incorrect
Last Solution submitted on Mar 28, 2025

Problem Comments

Solution Comments

Show comments
Who Deserves Your Praise? Discover the New Contribution Widget!
...
We are excited to announce another update to our Discussions area: the...

Problem Recent Solvers10028

Suggested Problems

More from this Author13

Community Treasure Hunt

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

Start Hunting!
Go to top of page