Watch this Author's files
Thanks for uploading the program, as it is of great help.
My only concern is what many of the community members also faced. But apparently you have not replied to any of them.
"Matlab gives the following error
Undefined function 'substring' for input arguments of type 'char'.
Error in extract_db (line 46)
file_a = substring(char(file_a), 0, findstr(char(file_a), '_')-2);"
Please answer to this query,for the benefit of all.