File access problem in flac format

2 views (last 30 days)
SYED ZULQARNAIN ALI SHAH
SYED ZULQARNAIN ALI SHAH on 21 Jan 2017
Answered: Saurabh Gupta on 30 Jan 2017
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.

Answers (1)

Saurabh Gupta
Saurabh Gupta on 30 Jan 2017
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.

Products

Community Treasure Hunt

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

Start Hunting!