Question: 9. Another extra credit option. Create a function m-file for the function f(x)=2xcos(2x)(x2)2. Use the feval matlab command, to evaluate the function, e.g.-with xvals=a:h:b, then

 9. Another extra credit option. Create a function m-file for the

9. Another extra credit option. Create a function m-file for the function f(x)=2xcos(2x)(x2)2. Use the feval matlab command, to evaluate the function, e.g.-with xvals=a:h:b, then yvals = feval ('mymfilename', xvals ). Use the plot command, e.g., plot(xvals,yvals) , to graph the function over the intervals [2,3],[0,2] and [3,4]. Use n=130 points with step size h=nba for each case. Provide a printout of each plot and a printout of your function m-file

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!