Filter löschen
Filter löschen

How to save to .txt using WRITEMATRIX ?

2 Ansichten (letzte 30 Tage)
도현 김
도현 김 am 17 Mär. 2021
Kommentiert: Mathieu NOE am 18 Mär. 2021
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 ?

Akzeptierte Antwort

Mathieu NOE
Mathieu NOE am 17 Mär. 2021
writematrix(num2str(M,'% .14e'),'M.txt','Delimiter','tab');
  2 Kommentare
도현 김
도현 김 am 18 Mär. 2021
thank you ! ! ! !
Mathieu NOE
Mathieu NOE am 18 Mär. 2021
you're welcome

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Import and Export finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by