Object1 = audiorecorder(8000, 8, 1,1);
Object2 = audiorecorder(8000, 8, 1,0);
recordblocking(Object1 , 5);
recordblocking(Object2 , 5);
%How I can record the two object at the same time (by the above code Object1 will record the FIRST 5 sec while Object2 will record the second 5 sec, and I need these two Object to record the first 5 sec) PLEASE HELP

1 件のコメント

mobin
mobin 2018 年 12 月 7 日
i know it mightbe too late to answer you, but anyway you can use simulink abd log datato your matlab code

サインインしてコメントする。

 採用された回答

Geoff Hayes
Geoff Hayes 2015 年 4 月 26 日

0 投票

mohanad - rather than use recordblocking which does not return control until recording completes (so after the first five seconds), try using record instead. Note that calling this function will allow control to return immediately, so you may want to pause for five seconds before continuing with your code. Something like
Object1 = audiorecorder(8000, 8, 1,1);
Object2 = audiorecorder(8000, 8, 1,0);
record(Object1 , 5);
record(Object2 , 5);
pause(5.0);
Try the above and see what happens!

1 件のコメント

mohanad sharei
mohanad sharei 2015 年 5 月 2 日
Thank you very much, it is work

サインインしてコメントする。

その他の回答 (0 件)

質問済み:

2015 年 4 月 26 日

コメント済み:

2018 年 12 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by