Question: in matlab please. You are to use the same Script File as Homework 4B: Part 1 Create a Function File that takes in the following
in matlab please.
You are to use the same Script File as Homework 4B: Part 1 Create a Function File that takes in the following 2 vectors from your HW 4B script. The function shall be able to accept any two equal length vectors from the script. An example of the vectors are: TimeDay ['M', 'A', 'N', 'M', 'M', 'A', 'N'] TempMeasured [15, 25, 14, 18, 17, 28, 16] Where: M is morning, A is afternoon, N is night Your function should return an array to the script with ONLY the temperatures lower than 18 and measured during the morning. You are not allowed to use if statements to create your function, only Array Operations (Indexing)! Use your script to call your function and the output from the function file. From the example above, your script would output the following: The morning temperatures < 18 degrees are [ 15 17 ] degrees. Make sure you document it properly.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
