Need help with Matlab recording

1 回表示 (過去 30 日間)
Nikos Korobos
Nikos Korobos 2022 年 3 月 18 日
回答済み: Geoff Hayes 2022 年 3 月 18 日
Hello everyone, I've written the below code so far.
Need Matlab to record(function to be running/active) for as long the button is pressed.
Then use the above running time as an input for the record function (screenshot).
Imagine it being like a play/pause button.
Any ideas?
Thanks in advance

採用された回答

Geoff Hayes
Geoff Hayes 2022 年 3 月 18 日
@Nikos Korobos - you mention a button. Do you want to use this code with a GUI and have the recording continue until the button is released (whatever this means)? Instead of using recordblocking with a duration, you could use record without a duration (length of recording). When you want to stop recording, you would just call stop on the audiorecorder object.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Objects についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by