csvwriteFast

版本 1.0.0.0 (316 字节) 作者: Sergey
fast writing of numerical data / matrices into a csv / text file
642.0 次下载
更新时间 2008/10/3

无许可证

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.

引用格式

Sergey (2024). csvwriteFast (https://www.mathworks.com/matlabcentral/fileexchange/21645-csvwritefast), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Text Files 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

updating the help