How to save to .txt using WRITEMATRIX ?

5 ビュー (過去 30 日間)
도현 김
도현 김 2021 年 3 月 17 日
コメント済み: Mathieu NOE 2021 年 3 月 18 日
M=ones(1,5)
writematrix(M,'M.txt','Delimiter','tab');
>> 1 1 1 1 1
but i want to : 1.00000000000000e+000 1.00000000000000e+000 1.00000000000000e+000 1.00000000000000e+000 1.00000000000000e+000
how can i get it ?

採用された回答

Mathieu NOE
Mathieu NOE 2021 年 3 月 17 日
writematrix(num2str(M,'% .14e'),'M.txt','Delimiter','tab');
  2 件のコメント
도현 김
도현 김 2021 年 3 月 18 日
thank you ! ! ! !
Mathieu NOE
Mathieu NOE 2021 年 3 月 18 日
you're welcome

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStandard File Formats についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by