load ha .wav file in matlab
Afficher commentaires plus anciens
helow can anyone help me....i want to make gui interface.and on browse button i want to laod a.wav file into test.m file. how can i do this plz anyone help me ?
Réponses (1)
Wayne King
le 19 Mai 2012
You can do something like this.
h = uicontrol('Style', 'pushbutton','String','Select WAV File',...
'Position',[20 150 100 70],...
'Callback','[filename,pathname]=uigetfile(''*.wav'');');
[y,fs] = wavread([pathname filename]);
Now y is available as a variable to pass to a M-file.
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!