Export matrix to matlab

Dear all,

from versions 4.x of FreeFem, the default format for exporting sparse matrices has changed from Morse to Hash.
Is there anyway to force FreeFem to save the sparse matrices in Morse format?
Or is there any matlab code, like FFmatrix_fread, to read hash matrices in Matlab?

Thank you for your attention,

Tom

see example tutorial/sparse-matrix.edp

pass the matrix in CSR format before to write

tutorial/sparse-matrix.edp: MM.CSR;
tutorial/sparse-matrix.edp: cout << " MM (format CSR or Morse) "<< MM << endl;