Writing workspace into csv format

Hi
I have imported an acces file into the workspace and i need to write it to a csv format. The workspace only has 1 column (8736x1) of data which goes like this:
0.261
0.493
0.276
0.370
1.400 (problem area)
etc.
I am using writeformat to write it into csv, but whenever i do this any number that does not begin '0.' such as 1.400 become 14.00 in the csv file. Can anyone help me understand what i am doing wrong?

3 件のコメント

Guillaume
Guillaume 2019 年 12 月 9 日
Do you really mean writeformat? If so, it's not a function that is part of matlab so not really something we can help with. You'd have to ask the author of that function.
If not, which function did you actually mean. Also please attach a mat file with the variable.
Dzemal Bijedic
Dzemal Bijedic 2019 年 12 月 9 日
You're right, i meant writematrix. I zip file is attached to this answer. The variable is called nRT.
Akira Agata
Akira Agata 2019 年 12 月 10 日
Running your program on MATLAB R2019b, the issue you mentioned could not be reproduced, as shown below. Could you tell us more details?
writematrix.PNG

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeWorkspace Variables and MAT Files についてさらに検索

製品

リリース

R2019b

質問済み:

2019 年 12 月 9 日

コメント済み:

2019 年 12 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by