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
Problem Comments
5 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers11894
Suggested Problems
-
Sum all integers from 1 to 2^n
18343 Solvers
-
Arrange Vector in descending order
14295 Solvers
-
First non-zero element in each column
974 Solvers
-
Find the largest value in the 3D matrix
1697 Solvers
-
Are all the three given point in the same line?
610 Solvers
More from this Author13
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
How can I find the solution I already failed to solve 15 times.
Try reading the question again carefully and make sure you understand the linearly spaced part. It's a tricky one.
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.