Question: Making 2 - D plots. Write a separate m - file for each part. Remember to print each plot to its separate PNG file and

Making 2-D plots. Write a separate m-file for each part. Remember to print each plot to its separate PNG file and additionally write a text file with comments for the whole problem to explain briefly how you solved the problem.
(a) Plot each of the following functions over each specified domain. f (x)=2 sin(x)+ cos(x), x in [2\pi ,2\pi ]
g(x)= ex cos(x), x in [0,2\pi ] h(x)=1, x in [5,5]
(b) Let
fk(x)=1, x in [\pi /2,\pi /2]. cos2 x+k2 sin2 x
Plot the function fk(x) for k =2,3, and 4 in the same graph. You will need to use hold on before you use plot and hold off after the final plot to ensure all lines show up in the axes. Add annotations to make the plot more effective.

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!