mex_WriteMatrix

Fast csvwrite/dlmwrite replacement for MATLAB (.mex function)
330 Downloads
Updated 24 Feb 2018

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 (2024). mex_WriteMatrix (https://github.com/nazarovsky/mex-writematrix), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Characters and Strings in Help Center and MATLAB Answers
Acknowledgements

Inspired: fcell2csv - Fastest Cell Array to CSV-file

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
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.