export to csv without scientific notation

13 ビュー (過去 30 日間)
Chamjiee Tramadol
Chamjiee Tramadol 2016 年 6 月 20 日
編集済み: dpb 2016 年 6 月 20 日
hi i have an array that contains couple hundred 6 digit integers..
when i do csvexport it is shown in scientific notation e.g. 973961 is shown as 9.7396e+05 then i am unable to get an idea from csv file what the actual value was before conversion.
any help ?
  1 件のコメント
Star Strider
Star Strider 2016 年 6 月 20 日
I cannot find csvexport in the MATLAB Online Documentation. If it’s a File Exchange contribution, contact the author.

サインインしてコメントする。

回答 (1 件)

dpb
dpb 2016 年 6 月 20 日
編集済み: dpb 2016 年 6 月 20 日
As Star says, "not a Matlab question" but if is a FEX submission it probably suffers from similar limitation as does csvwrite which includes
>> help csvwrite
...
* csvwrite writes a maximum of five significant digits. For greater
precision, call DLMWRITE with a precision argument.
You should, of course, check the help info for the function to see what additional parameters may be accepted from its default just as dlmwrite but it would seem the logical solution would be dlmwrite with the alternative of a specific format to get a specific output form.

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by