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

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 2 de Mayo de 2016
Editada: Azzi Abdelmalek el 2 de Mayo de 2016
a=[25,27,24,36]
b=[19,20,22,17]
c=[12,34,56,33]
M=[a;b;c]
dlmwrite('data.txt',M)

Más respuestas (0)

Categorías

Más información sobre Data Import and Analysis en Centro de ayuda y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by