Most lap swimming pools have lanes that are either 25 yards long or 25 meters long; there’s not much of a difference. A function “convyards” is to be written to help swimmers calculate how far they swam
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:10| Question number:5.10
All Answers
total answers (1)
convyards.m
function [meters, varargout] = convyards(yards)
meters = yards / 1.0936133;
if nargout == 2
varargout{1} = yards / 1760;
end
end
need an explanation for this answer? contact us directly to get an explanation for this answer