Azzera filtri
Azzera filtri

How to save to .txt using WRITEMATRIX ?

2 visualizzazioni (ultimi 30 giorni)
도현 김
도현 김 il 17 Mar 2021
Commentato: Mathieu NOE il 18 Mar 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 ?

Risposta accettata

Mathieu NOE
Mathieu NOE il 17 Mar 2021
writematrix(num2str(M,'% .14e'),'M.txt','Delimiter','tab');

Più risposte (0)

Categorie

Scopri di più su Data Import and Export in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by