Replacement (fast!) for dlmwrite in MATLAB
C Matlab Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build.bat
magic.txt
mex_WriteMatrix.c
mex_WriteMatrix.mexw64
mex_writematrix_test.m
readme.md

readme.md

Description: Function to write matrix contents to 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