function slipRatio = slipratio(vCar, vWheel) diff = vCar-vWheel; ratio = diff./vCar; slipRatio = ratio.*100; end