Question: Complete the implementation of the dampedOsc function, which evaluates and plots a graph showing the function y= e^( -0.1 x) cos(3 x) at a set

Complete the implementation of the dampedOsc function, which evaluates and plots a graph showing the function y=e^(-0.1x) cos(3x) at a set of points spaced at intervals of 0.1 and ranging from 0 to 2.

The curve should be displayed using a cyan dotted line with 'hexagram' markers.

This is for Matlab. my code so far is:

function y= dampedOsc()

x = 0:0.1:3*pi; y = exp(-0.1*x)*cos(3*x); plot(x,y, 'ch')

end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!