代写 html math matlab ME 208 Fall 2019

ME 208 Fall 2019
Homework 5 (15 Points)
Your final submission for this HW assignment will consist of two MATLAB (.m) files, and a statement written in the text box provided by Blackboard.
Problem 0 (3 Points)
Please read about the following functions or information using the provided links. When you submit your HW, there is a text box for comments. In that text box you will write the following: “I, ________________, have read the requested material, and did my best to understand it”. By writing this, you will receive the listed points in this HW; however, this is an honor system problem, so please only write the statement if you read about the functions.
Function
Syntax
To Read
indexing
N/A
https://www.mathworks.com/help/matlab/m ath/array-indexing.html
https://www.mathworks.com/company/news letters/articles/matrix-indexing-in- matlab.html
https://www.mathworks.com/help/matlab/m atlab_prog/find-array-elements-that-meet-a- condition.html
linspace
arr = linspace(x1,x2,n)
https://www.mathworks.com/help/matlab/ref /linspace.html
colon
:
https://www.mathworks.com/help/matlab/ref /colon.html
length
L = length(x)
https://www.mathworks.com/help/matlab/ref /length.html
Giraldo Last Update: September 24, 2019

ME 208 Fall 2019
Problem 1 (6 Points) – MATLAB
Using the MATLAB template LastName_FirstName_HW5_P1.m, create a code that plots the displayed figures and prints in the command window the following table:
For this problem, you are not allowed to enter arrays or matrices number-by-number. This means that you are not allowed to write statements such as: arr = [0.5 1 1.5 2 …];. Instead you are expected to use linspace, the colon (:), length, and indexing techniques.
Notice that the plotting statements are commented. Therefore, work on the code from the top to bottom, and once you get to each plotting statement, uncomment it to see if you did the work correctly.
Problem 2 (6 Points) – MATLAB
Using the MATLAB template LastName_FirstName_HW5_P2.m, create a code that plots the displayed figures:
Notice that the plotting statements are commented. Therefore, work on the code from the top to bottom, and once you get to each plotting statement, uncomment it to see if you did the work correctly.
Giraldo Last Update: September 24, 2019