Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 . [ 6 points. ] Making 2 - D plots. Write a separate m - file for each part. Remember to print each plot
points. Making D plots. Write a separate mfile 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 sinx cosx x in pi pi
gx ex cosx x in pi hx x in
b Let
fkx x in pi pi cos xk sin x
Plot the function fkx for k and 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.
points. Reading Assignment. Remember to write a text file with comments for the whole problem to explain briefly what you did and what you learned.
Matlab offers extensive documentation through its Help facility.
a Follow the tutorial and look through the Get Started Guide to familiarize yourself with Matlab. Immediately, study the first five sections carefully: Desktop Basics, Matrices and Arrays, Array Indexing, Workspace Variables, Text and Characters, and Calling Functions. Then, before the next class, finish by looking through the remaining ones: D and D Plots, Programming and Scripts, and Help and Documentation.
b Follow the suggestion in the tutorial and look at the documentation, both from help and from doc, of some functions mentioned, starting with ls pwd cd etc., mathematical functions like factorial, sin etc., and plotting functions like plot, mesh, etc. The goal is not to understand the contents of the documentation fully, but to learn how to access it and what kind of information is there.x
For each plot, make sure to add appropriate annotations to the plot to make it more effective. As a minimum, you need axes labels, a title, grid lines, and control the domain.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started