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 日

0 投票

Read about tic, toc.You can calculate the time taken using that.

カテゴリ

質問済み:

2017 年 2 月 8 日

回答済み:

2017 年 2 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by