How to save to .txt using WRITEMATRIX ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
도현 김
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 ?
0 Kommentare
Akzeptierte Antwort
Mathieu NOE
am 17 Mär. 2021
writematrix(num2str(M,'% .14e'),'M.txt','Delimiter','tab');
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import and Export finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!