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:
Assume A = 1 and f = 1 . The vector t should be linearly spaced from 0 to T, with N elements.
How can I find the solution I already failed to solve 15 times.
function y = damped_cos(lambda, T, N)
A=1;
f=1;
t=linspace(0,T,N);
y = A*exp(-lambda*t).*cos(2*pi*f*t);
end
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?
I didn't understand why my code not working here,it worked on my Matlab but not here.
721 Solvers
Calculate the area of a triangle between three points
453 Solvers
306 Solvers
247 Solvers
Find the next Fibonacci number
153 Solvers