Question: New to matlab and programming in general - Not sure why it doesn't have correct size. Requirements: Complete the implementation of the dampedosc function, which

New to matlab and programming in general - Not sure why it doesn't have correct size.

New to matlab and programming in general - Not sure why itdoesn't have correct size. Requirements: Complete the implementation of the dampedosc function,

Requirements: Complete the implementation of the dampedosc function, which evaluates and plots a graph showing the function y-ecos 3x at a set of points spaced at intervals of 0.1 and ranging from 0 to 3. The curve should be displayed using a magenta dotted line with pentagram markers Notes: Although the dampedosc function does not have any output variables, the graph will be examined to determine if the correct values have been plotted. Note that although the general form of the function plotted in this exercise is similar to one you may have already completed, the exact specification (which includes exercise- specific parameters, is unlikely to be the same Input variable: n/a -this function has no input variables. Output variable: n/a -this function has no input variables. Submitted file: function y-dampedosc(x) fplot(@(x) (exp(-9.8%)*cos (3%)),[e 3"p1()],"mp:.) end Requirements: Complete the implementation of the dampedosc function, which evaluates and plots a graph showing the function y-ecos 3x at a set of points spaced at intervals of 0.1 and ranging from 0 to 3. The curve should be displayed using a magenta dotted line with pentagram markers Notes: Although the dampedosc function does not have any output variables, the graph will be examined to determine if the correct values have been plotted. Note that although the general form of the function plotted in this exercise is similar to one you may have already completed, the exact specification (which includes exercise- specific parameters, is unlikely to be the same Input variable: n/a -this function has no input variables. Output variable: n/a -this function has no input variables. Submitted file: function y-dampedosc(x) fplot(@(x) (exp(-9.8%)*cos (3%)),[e 3"p1()],"mp:.) 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!