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

1 件のコメント

alkaabi
alkaabi 2014 年 4 月 9 日
works perfectly :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by