Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Logic array: Identifying qualifying times Create a logic array qualifyingIndex with true for any location where the runner is on the Green Team with a
Logic array: Identifying qualifying times Create a logic array qualifyingIndex with true for any location where the runner is on the Green Team with a running time less than 8.2. Row array runner Teams indicates if a runner is on the Green Team (G) or Blue Team (B). Row array runner Times indicates the corresponding runner's time. Function Save C Reset D MATLAB Documentation 1 function qualifyingIndex = FindQualifying (runnerTeams, runnerTimes) 2 % runner Teams : Array indicates if the runner is Green Team (G) or Blue Team (B) % runnerTimes: Corresponding run time M + in % Create a logic array qualifyingIndex with true for any location % where the runner is on Green Team with a running time less than 8.2 qualifyingIndex = 0; c 9 end Code to call your function C Reset 1 FindQualifying(['G', 'B', 'G', 'G', 'B'], [8.5, 9, 7.7, 7.9, 7.2])
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started