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

0 Stimmen

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

Produkte

Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by