cv::Mat.new([]): check all array values to select right mat type
add Mat.to_MAT returning a string compatible to Matlab's M-File