I have a 57X1 double matrix in Matlab and I want to find a way to save that data and then load it to a new OpenCV Mat. For actual images I used to do imwrite in Matlab and then imread in OpenCV but, in this current situation, the result was a Mat with all of the values equal to 255.