hello everyone,
I was wonderin how to open a file with the name "data.txt" and then outpout the values
a=25,27,24,36
b=19,20,22,17
c=12,34,56,33
just with commands. I don't want to open the file manually and copy and paste. Thank you in advance

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 5 月 2 日
編集済み: Azzi Abdelmalek 2016 年 5 月 2 日

0 投票

a=[25,27,24,36]
b=[19,20,22,17]
c=[12,34,56,33]
M=[a;b;c]
dlmwrite('data.txt',M)

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by