I have written a code to plot the Damped sine wave and to mark a minimum value on the curve.
function m = plot_cos(t, y)
Input arguments passed:
y = exp(-0.5*t).*cos(2*pi.*t);
Issue: Not able to plot the minimum value of y. Am I erring in line no. 4??