help in pushbutton GUI
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have three different tones need to be click using pushbutton in GUI. I already create these tones in m file. So, how I want to called these tones in GUI. Anyone can help me?
0 个评论
回答(1 个)
Image Analyst
2014-7-20
In the callback of each function, use sound() to play the sound you want. First run the m-file that creates the sound variables - it should return them as output variables or else write them to known filenames. You then need to get the sound you want to play in scope, so see the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F
2 个评论
Image Analyst
2014-7-21
You need to extract them. If they're simple sine waves, use a notch filter in Fourier space with the fft() function and ifft() function.
If they're more complicated sounds that are blended, then use Independent Components Analysis to solve the Blind Source Separation problem (the cocktail party problem).
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!