MATLAB interface for BTF
