Week 2 HomeworkENGR 112Arrays and plottingLearning Objectives:You should accomplish the following:•Understand how to create arrays, calculate with them, and extract data from them.•Plot the results of calculations.•Be able to split up plots into multiple windows•Plot multiple things in the same window with different colors and attributes.Homework Guidelines:1)Use example scripts from online for help plotting and vectors.2)Save scripts as “HW2Script1.m” for problem 1, “HW2Script2.m” for problem 2, etc.Specific Coding Notes:Plotting –Label axes (with units when known), use titles, and use legend when plotting morethan one thing on a graph.Example:☹"#$NO☹"#$࠽?’()*YES࠽?’()*Warnings and Errors –You may see orange and red bars on the right-hand side of the editor.Orange bars are warnings and red bars are errors. Hovering with the cursor over a par will showyou the problem.Example: