Added function to convert between btf files and matlab matrices