Problem 61140. Calculating Swimming Stroke Index (SI)

In competitive swimming, speed (v) is only one part of the equation. High efficiency is defined by moving fast while maintaining a high Distance Per Stroke (DPS). The Stroke Index (SI) is a common metric used by coaches to quantify this efficiency.
Your task is to calculate the Stroke Index based on a single pool length. However, you must account for the glide distance after the wall push-off, as no strokes are taken during that phase.
SI = v*DPS
Where:
  • v is the velocity over the entire length (m/s).
  • DPS is the distance covered per stroke during the swimming phase only.
Constraint:If the glide distance (pushOff) is greater than or equal to the pool length (poolLength), the scenario is physically impossible for this calculation. In such cases, the function must return NaN.
Inputs
  1. poolLength: Pool length in meters (e.g., 50).
  2. time: Time taken to complete the length in seconds.
  3. strokeCount: Total number of individual arm strokes taken.
  4. pushOff: Glide distance (meters) covered before the first stroke begins.
Output
  • SI: The Stroke Index rounded to two decimal place

Solution Stats

75.0% Correct | 25.0% Incorrect
Last Solution submitted on Dec 21, 2025

Solution Comments

Show comments

Problem Recent Solvers7

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!