大数据从 Matlab 导出到 .csv 文件

发布于 2024-11-05 15:07:13 字数 290 浏览 6 评论 0原文

我需要创建一个大的 .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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑忘罢 2024-11-12 15:07:13

如果您有 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文