Question: Identifying qualifying times Create a logic array qualifyinglndex with true for any location where the runner is male with a running time less than 8.2.
Identifying qualifying times Create a logic array qualifyinglndex with true for any location where the runner is male with a running time less than 8.2. Row array runnerGenders indicate if a runner if male (M) or female (F). Row array runnerTimes indicates the corresponding runner's time. Your Function B Save C Reset MATLAB Documentation 1 function qualifyingIndex FindQualifying(runnerGenders, runnerTimes) 21% runnerGenders : Indicates if the runner is male (M) or female (F) % runnerTimes: Corresponding run time 4 % create a logic array qualifying!ndex with true for any location % where the runner is male with a running time ess than 8.2 qualifying!ndex = 0; 8 9 end Code to call your function C Reset IFindQualifying( [H', 'F', 'M 'M', 'F'], [8.5, 9, 7.7, 7.9, 7.2] ) Run Function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
