mex_WriteMatrix

Fast csvwrite/dlmwrite replacement for MATLAB (.mex function)

https://github.com/nazarovsky/mex-writematrix

You are now following this Submission

Replacement (fast!) for dlmwrite in MATLAB
Function to write matrix contents to the file. Replacement for (slow) dlmwrite in MATLAB

Usage: mex_WriteMatrix(filename,matrix,format,delimiter, writemode);

Parameters:

filename - full path for CSV file to export
matrix - matrix of type 'double' values to be exported
format - format of export (sprintf) , e.g. '%10.6f'
delimiter - delimiter, for example can be ',' or ';'
writemode - write mode 'w+' for rewriting file 'a+' for appending

http://nazarovsky.ru/2014/08/22/fast-csv-values-export-to-file-mex-based-dlmwrite-replacement-for-matlab/

Cite As

Alex Nazarovsky (2026). mex_WriteMatrix (https://github.com/nazarovsky/mex-writematrix), GitHub. Retrieved .

Acknowledgements

Inspired: fcell2csv - Fastest Cell Array to CSV-file

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes Action
1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.