John Absher - MATLAB Cody - MATLAB Central

John Absher

36743
Rank
2
Badges
110
Score
1 – 12 of 12

John Absher received Commenter badge for Problem 44934. Plot Damped Sinusoid

on 4 May 2020

John Absher submitted a Comment to Problem 44934. Plot Damped Sinusoid

I put this code in my desktop Matlab and the plot looks fine, but Cody says it's wrong. Can someone give me a hint? function plot_cos(y, t) t = linspace(0,15,400); [val,i]=min(exp(-0.5*t).*cos(2*pi.*t)); plot(t,(exp(-0.5*t).*cos(2*pi.*t)),'b--',t(i),val,'r*') end

on 4 May 2020

John Absher received Solver badge for Solution 2234933

on 25 Apr 2020

1 – 12 of 12
Go to top of page