I want to use a prompted input in the format HH:SS and convert it to a number. For example, 17:15 (17 mins, 15 secs) would be 17.25. Is there a function in MATLAB that does this?
prompt =('Please enter your time in the format MM:SS: \n\n');
time = input(prompt);
reward = round(929187*time^(-3.235));