Austin - what time are you trying to show? The current time or the elapsed time? In the above code,
t = timer(...
t should be the timer object, so trying to call floor on this object should fail with the error
Undefined function 'floor' for input arguments of type 'timer'.
If you want to show the elapsed time since the start of the game (or start of the timer), then you could use the now function. Suppose you call now as soon as you start the timer
start(t);
gameStartTime = now;
When you are ready to display the elapsed time, then get the current time and compare it with the start time
currentTime = now;
elapsedTimeSec = floor((currentTime - gameStartTime)*86400);
title([{'Time: ',num2str(elapsedTimeSec);'Score: ',num2str(Score)}]);
Since now returns a serial date number which represents the whole and fractional number of days from a fixed, preset date, then to convert it to seconds, we multiply by 86400 (=24 hours * 60 minutes * 60 seconds).