Borrar filtros
Borrar filtros

Matlab cant play .wav file twice

2 visualizaciones (últimos 30 días)
Darko Kulic
Darko Kulic el 3 de Abr. de 2019
Respondida: Darko Kulic el 3 de Abr. de 2019
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
  3 comentarios
Darko Kulic
Darko Kulic el 3 de Abr. de 2019
'double' was added by me after gettting the problem. just to look up what wil happen.
Jan
Jan el 3 de Abr. de 2019
Editada: Jan el 3 de Abr. de 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?

Iniciar sesión para comentar.

Respuestas (1)

Darko Kulic
Darko Kulic el 3 de Abr. de 2019
Hello Jan,
I'm sorry or that bad question/post. I did the post in a hurry, between cooking and coding.
I dont even have a line 493 in my app code. The problem was really silly, matlab did once the code as I want it, the second run was then a different story. It doesent matter, now it runs. Everythin is good.
I'am really new into matlab or coding, this is the first app for me, I'am working with matlab since Feb' 2019.
I have another question, thats how my code looks like for the switch/pushbutton combo.
(see the picture, I cant copy/paste anything in to the textfield of the mathworks homepage, I even downloaded opera to try it, but it doesent work. Not with firefox, not with safari, it is really desperating.)
Is ist possible to create out of a data, which is generated by a function like my fuzz function, a .wav file without saving it and the reading it in again, to be played as an audiofile with the usual audiofunctions?
I want to avoid the uiputfile and uigetfile but still create the audio file out of my data.
Thank you very much for your help!
By the way, you guys are awesome! Always helping and sharing!
I love it!
br
Darko Kulic
Bildschirmfoto 2019-04-03 um 15.32.59.png

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by