help in pushbutton GUI

조회 수: 1 (최근 30일)
mira
mira 2014년 7월 20일
댓글: Image Analyst 2014년 7월 21일
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?

답변 (1개)

Image Analyst
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
mira
mira 2014년 7월 21일
Hi, Image Analyst,
Thank you for the information. Actually I have three different tones combines in one .wav file. Which means, 3 different tones playing together at a time. And one of these tones need to be clicked and I'm using pushbutton to click the tones. So I will called the .wav file,but how I want to make the matlab understand that I only want to click on one tone only and if I click on two others tones it will display wrong. Hope you understand my question. Can the matlab do that?
I'm new with matlab GUI.
Thank you.
Image Analyst
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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by