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

 Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 2 Mai 2016
Modifié(e) : Azzi Abdelmalek le 2 Mai 2016

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Prepare Model Inputs and Outputs dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by