mat2014b and func snippet