I am trying to print a warning or just a message after every second, like \"1 second elapsed\". Is there a possibility to realize that?
I tried it with tic toc and a loo
Use a timer object.
t = timer; t.ExecutionMode = 'fixedRate'; t.Period = 1; t.TimerFcn = @(~,~)disp('1s elapsed'); start(t)