MATLAB Answers

Stop audio from playing using sound()

291 ビュー (過去 30 日間)
YT
YT 2019 年 2 月 12 日
コメント済み: Gabriel Rantung 2020 年 4 月 4 日
Matlab Online (ver R2018b)
I'm playing some audio using sound(y,Fs) but I can't find a way to stop the audio from playing. You can guess that it gets even worse when you (accidentally) execute the command twice (yes it plays the music over eachother instead of replacing it). Refreshing the page is the only option for now.
p.s.
I know you can use audioplayer(y,Fs) for offline versions but it won't work online.

  0 件のコメント

Sign in to comment.

採用された回答

Walter Roberson
Walter Roberson 2019 年 2 月 12 日
sound() can only be interrupted by killing matlab .

  0 件のコメント

Sign in to comment.

その他の回答 (1 件)

Joe V
Joe V 2019 年 6 月 27 日

  1 件のコメント

Gabriel Rantung
Gabriel Rantung 2020 年 4 月 4 日
Thank you so much!

Sign in to comment.

製品


リリース

R2018b

Translated by