Problem 44948. Calculate a Damped Sinusoid
- lambda - λ
- T - maximum value of t
- N - number of elements in t
Solution Stats
Problem Comments
-
5 Comments
I think i need explanation for this concept :
The vector t should be linearly spaced from 0 to T, with N elements.
if I do, a = 1:6, the ans is 1 2 3 4 5 6
but now if i do, a = 1:2:6, ans is 1 3 5
so for linear distributed vector to reach end point 6, we need to do,
a = 1:(6-1)/(6+1):6 --------similarly can it be done as t = 0:(T-1)/(T+1):T? what is the concept in the words 'linearly spaced'?
From the equation y = A.ⅇ^(-λt)*cos(2πft), it might be confused if you don't know the character between A and -λt is the 'euler number'.
I think it is not correctly presented. It should have been re phased or underlineing the fact, that there is no matrix multiplication in the exponent.
Solution Comments
Show commentsGroup

MATLAB Onramp Practice
- 15 Problems
- 4527 Finishers
- Times 2 - START HERE
- Calculate Amount of Cake Frosting
- Convert from Fahrenheit to Celsius
- Find the Oldest Person in a Room
- Verify Law of Large Numbers
- Solve a System of Linear Equations
- Calculate a Damped Sinusoid
- Plot Damped Sinusoid
- Calculate BMI
- Crop an Image
- Find the Best Hotels
- Find MPG of Lightest Cars
- Calculate Inner Product
- Rescale Scores
- Longest run of consecutive numbers
Problem Recent Solvers10001
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!