大数据从 Matlab 导出到 .csv 文件
我需要创建一个大的 .csv 文件,其中包含 200,000 多行和 7 列。这失败了:
a = randn(200000,7); xlswrite('hugedata.csv', a) ;
???使用 ==> 时出错xlswrite 在 211 Excel 返回:错误:对象返回错误代码:0x800A03EC。
a = randn(4,3) ; xlswrite('hugedata.csv', a) ; % 工作得很好。
评论?如果可用,请建议替代代码。谢谢。
I need to create a big .csv file with say 200,000+ rows and 7 cols. This fails:
a = randn(200000,7) ; xlswrite('hugedata.csv', a) ;
??? Error using ==> xlswrite at 211
Excel returned: Error: Object returned error code: 0x800A03EC.
a = randn(4,3) ; xlswrite('hugedata.csv', a) ; % works perfectly fine.
Comments? Please suggest an alternative code if available. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有 2003 版本的 Excel,则它无法处理 200000 行。这就是返回错误的原因。
If you have the 2003 version of excel, then it can't handle 200000 rows. that is what is returning the error.