将数据从Matlab导出到CSV [英] Export data from matlab to csv

查看:1629
本文介绍了将数据从Matlab导出到CSV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用matlab的csvwrite将数组写入csv文件.但是,matlab会以2.008e + 09之类的格式写入数据.我不希望它以e + 09格式编写,但总数已扩大.我该怎么办?

I am trying to use matlab's csvwrite to write an array to a csv file. However, matlab writes the data in the format like 2.008e+09. I don't want it to write in the e+09 form but the whole number expanded. How can I do it?

推荐答案

csvwrite最多写入5个有效数字.

csvwrite writes a maximum of 5 significant digits.

使用 dlmwrite 代替:

dlmwrite('test.csv',your_data, 'precision', 9) ; % 9 significant figures.

这篇关于将数据从Matlab导出到CSV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆