load ha .wav file in matlab
Mostrar comentarios más antiguos
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 ?
Respuestas (1)
Wayne King
el 19 de Mayo de 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.
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!