Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 matlab 的 csvwrite 将数组写入 csv 文件。但是,matlab 以 2.008e+09 之类的格式写入数据。我不希望它以 e+09 形式写,但整数扩大了。我该怎么做?
csvwrite writes a maximum of 5 significant digits.
csvwrite
Use dlmwrite instead :
dlmwrite
dlmwrite('test.csv',your_data, 'precision', 9) ; % 9 significant figures.