csvwriteFast

Version 1.0.0.0 (316 Bytes) von Sergey
fast writing of numerical data / matrices into a csv / text file
644 Downloads
Aktualisiert 3. Okt 2008

Keine Lizenz

usage:
csvwriteFast( filename, values, format )

speed:
>> r = randn( 1e5, 2 );
>> tic, csvwrite( 'r.csv', r ), toc
Elapsed time is 3.945658 seconds.
>> tic, csvwriteFast( 'r.csv', r, '%f,%f' ), toc
Elapsed time is 0.302832 seconds.

another advantage is ability to specify the numerical format for each column separately

i've noticed that this approach is more significant on matrices with low number of columns. For example, it writes matrix with 10 columns merely 3 times faster than csvwrite, while in the example above (2 columns) this factor is over 13.

Zitieren als

Sergey (2026). csvwriteFast (https://de.mathworks.com/matlabcentral/fileexchange/21645-csvwritefast), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2007b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Version Veröffentlicht Versionshinweise
1.0.0.0

updating the help