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 Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by