Question: The answer is not T or 'T' please type the codes Declaring a character Write a statement that assigns middlelnitial with the character T. Script


Declaring a character Write a statement that assigns middlelnitial with the character T. Script A Save e Reset m MATLAB Documentation 1 % Assign middleInitial with the character T Colon operator: Counting up Construct a row array countValues from 1 to end Value, using the colon operator, Ex I end value is 5 countValues should be [1,2,3,4,5) Function Save e Reset DI MATLAB Documentation 1 function countValues - CreateArray(endvalue) 2% endValue: Ending value of array countValues Construct a row array countValues from 1 to endValue, using the colon operator countValues 0: 4 5 7 8 end Code to call your function C Reset 1 Create Array(5) Logic array: Identifying qualifying times Create a logic array qualifyingIndex with true for any location where the runner is male with a running time less than 8.2. Row array runnerGenders indicate it a runner il male (M) or female (F). Row array runner Times Indicates the corresponding runner's time. Function Save e Reset DI MATLAB Documentation 1 function qualifying Index - FindQualifying (runnerGenders, runnerTines) 2 % runnerGenders: Indicates if the runner is male (M) or female (F) 3 runnerTimes: Corresponding run time 4 5 6 Create a logic array qualifying Index with for any location where the runner is male with a running time less than 8.2 7 qualifying Index = 0; 8 9 end Code to call your function C Reset FindQualifying I'M', 'F', 'M', 'M', 'F'], 18.5, 9, 7.7, 7.9, 7.21)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
