File access problem in flac format

3 visualizaciones (últimos 30 días)
SYED ZULQARNAIN ALI SHAH
SYED ZULQARNAIN ALI SHAH el 21 de En. de 2017
Respondida: Saurabh Gupta el 30 de En. de 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.

Respuestas (1)

Saurabh Gupta
Saurabh Gupta el 30 de En. de 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.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by