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일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Cell Arrays에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2021년 3월 17일

댓글:

2021년 3월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by