%% Hello World example
lastSeq   = 15;
thisTimer = timer;
thisTimer.Period         = 1/2;
thisTimer.TasksToExecute = 15;
thisTimer.ExecutionMode  = 'fixedRate';
thisTimer.TimerFcn       = @timer_update;
start(thisTimer);

function timer_update(myTimer, ~)
    fprintf(1, '%02d | Hello world!\n', myTimer.TasksExecuted);
end