Question: Using Matlab Create a function that takes in the following 2 vectors from a script. The function shall be able to accept any two equal
Create a function that takes in the following 2 vectors from a script. The function shall be able to accept any two equal length vectors from the script. TimeDay = ['M','A','N','M', 'M','A', 'N') Temp Measured = [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! Use a script to call your function and output the following: The morning temperatures
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
