File access problem in flac format

3 次查看(过去 30 天)
While working on non-intrusive load monitoring and having different files in .flac format in one folder and there name is in order class_device_region_kit_time. Actually I want to access files on basis of device and kit information from the folder and then audio read them. So I wanna know how to fix this issue after trying different things and topologies. Filename of 1 of the file is presented as example i.e. AC_Electrolux_r5_MK2_20151031065948 here I want to pick file on base of MK2 and AC. I tried audioread command but it asks for full path name but I want AC_MK2.flac basis reading of file. I will be thankful if someone can help.

回答(1 个)

Saurabh Gupta
Saurabh Gupta 2017-1-30
You can use dir command to get the list of all filenames, and then use regexp to match required patterns to get the list of filenames you need for an audioread task.

产品

Community Treasure Hunt

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

Start Hunting!

Translated by