problem in importing an audio file

6 vues (au cours des 30 derniers jours)
abhinav priyanshu
abhinav priyanshu le 4 Juil 2011
here's a code.. y=wavread('funky.wav'); [funky,f]=wavread('funky.wav'); wavplay(funky,f); subplot(2,1,1); plot(funky); title('Entire waveform'); smallRange = 100000:100000+floor(f/100); subplot(2,1,2); plot(smallRange); funky(smallRange); title('100 milliseconds');
an error is coming..need help.. error- Error in ==> noise at 1 y=wavread('funky.wav');
file name is noise
  1 commentaire
Jan
Jan le 4 Juil 2011
Please use the "{} Code" button to format the code. Follow the lin "Markup" on this page.

Connectez-vous pour commenter.

Réponse acceptée

Paulo Silva
Paulo Silva le 4 Juil 2011
Make sure that the file is accessible by MATLAB. See if the path is on the directories list. You can also put the complete path to the file as argument for wavread.

Plus de réponses (0)

Catégories

En savoir plus sur Audio I/O and Waveform Generation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by