Matlab cant play .wav file twice
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I'mwriting an app, and i want to play an created audiofile in this app.
The file is created by audiowrite, after it gets overworked by my fuzz function.
The funny thins is, matlab played the sound once, and after that, it always says, Undefined fucntion play for input arguments of type double.....
here the picture.
What can I do?
If I play the file with sound, it works fine,
but i want to play it and then stop it with two buttons made.
![Bildschirmfoto 2019-04-03 um 12.42.10.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/211812/Bildschirmfoto%202019-04-03%20um%2012.42.10.png)
3 commentaires
Jan
le 3 Avr 2019
Modifié(e) : Jan
le 3 Avr 2019
Please post the code as text and not as screenshot. The code fails in line 123. You have posted screen shots for the 493 ff and 137 ff. Why do you think, that these screenshots help to understand the problem?
"'double' was added by me after gettting the problem." - where did you add 'double' for what reason?
Which play function do you expect to play a double array? The sound command does, but why do you think there is a play function also?
Réponses (1)
Voir également
Catégories
En savoir plus sur Audio and Video Data dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!