Problem 44948. Calculate a Damped Sinusoid
Solution Stats
Problem Comments

3 Comments
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:(61)/(6+1):6 similarly can it be done as t = 0:(T1)/(T+1):T? what is the concept in the words 'linearly spaced'?
Solution Comments

1 Comment
tricky

1 Comment
Good problem

2 Comments
Who can recognize that symbol is "e" ???
Yeah same, had to zoom in and see

1 Comment
linearly spaced is a good hint

1 Comment
question is easy, but you need to use linspace(min,max,n) to generate a array.

4 Comments
here is the solution i didn't know what is wrong i tried many times can you help me please
y=A*exp(lambda*t).*cos(2*pi*f*t);
You are assuming the value of some variables which should not be the case.
Also, it's best to not post solutions (or solution attempts) in comments. Questions or comments specific to a solution can be posted in a comment tied to said solution or solution attempt.
the solution is right. maybe this can be helpful.
t=1:T/(N1):T;
A and f must in solution

2 Comments
I couldn't identify what went wrong
Read the expression in the question again carefully

3 Comments
I am not getting the error in my code.Though,its working in MATLAB script.please help
Anyone who has solved the problem, please help.I have developed the code according to the details and it's working well in matlab. I dont know why it is incorrect here.
Did you check the online and offline MATLAB's version?

2 Comments
I didn't understand why my code not working here,it worked on my Matlab but not here.
Read the problem statement again carefully.
Problem Recent Solvers5694
Suggested Problems

4568 Solvers

Remove the polynomials that have positive real elements of their roots.
1030 Solvers

Back to basics 6  Column Vector
975 Solvers

Deleting an element in a matrix
407 Solvers

696 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!