how to set timer for record function?

I want to record my voice while counting the time of recording before I stop the record?
rec = audiorecorder;
record(rec);
%show time increasing by seconds
stop(rec);

回答(1 个)

KSSV
KSSV 2017-2-8
Read about tic, toc.You can calculate the time taken using that.

类别

帮助中心File Exchange 中查找有关 Clocks and Timers 的更多信息

回答:

2017-2-8

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by