How to write a for loop which will take in all .wav files in a directory, compute spectrogram and save as an image
4 ビュー (過去 30 日間)
古いコメントを表示
I am new to Matlab from the Python domain, and am looking to write a short for loop which will take all .wav files ( I have many .wav files in a single folder for training data for a machine learning project). I want to iterate through each .wav file in the folder and produce a spectrogram and save each spectrogram to the folder with the same name as the original .wav file.
All files are the same length (3 seconds) and are all sampled at 500kHz.
This should be straight forward but I am struggling a bit as this is my first time on Matlab
0 件のコメント
回答 (1 件)
Mathieu NOE
2020 年 10 月 9 日
hello
no panic ! I have the solution for you
the main function is : auto_process_all2.m
it needs the subfunction : spectrog_peak.m
it should be easy to you to modify your code - but I can continue to help you if needed
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Spectral Measurements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!