How can I find the solution I already failed to solve 15 times.
t=linspace(0,T,N);
y=exp(-lambda*t).*cos(2*pi*t);
I couldn't identify what went wrong
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.
Set the array elements whose value is 13 to 0
935 Solvers
Create a Multiplication table matrix...
282 Solvers
Determine the number of odd integers in a vector
435 Solvers
5113 Solvers
Mersenne Primes vs. All Primes
165 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!