Print out a warning every whole second in Matlab

前端 未结 3 1496
轮回少年
轮回少年 2021-01-24 04:43

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

3条回答
  •  别那么骄傲
    2021-01-24 05:34

    It is called pause. The optional argument specifies the duration in seconds. Documentation: http://www.mathworks.de/de/help/matlab/ref/pause.html

提交回复
热议问题