% スタート
function startTimer(~, ~)
if ~strcmp(t.Running, 'on')
start(t);
end
end
% ストップ
function stopTimer(~, ~)
if strcmp(t.Running, 'on')
stop(t);
end
end
% リセット
function resetTimer(~, ~)
stopTimer();
elapsedTime = 0;
set(timeText, 'String', '00:00');
end