Please I need help! I have a code that produces a matrix 50*50 and it only contaiedn number 1s and zeros. I want this matrix to be transfered to a text file as simple as that. I want it to be 50 columes and 50 rows seperated by one space.
thank you very much

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 4월 9일
편집: Azzi Abdelmalek 2014년 4월 9일

1 개 추천

dlmwrite('file.txt',your_matrix)
or
dlmwrite('file.txt',your_matrix,'delimiter','\t','newline','pc')

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Characters and Strings에 대해 자세히 알아보기

질문:

2014년 4월 9일

댓글:

2014년 4월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by