Save matlab output in textfile
Afficher commentaires plus anciens
I have two vectors in matlab with n-entries, let us call them x and y.
Now I want to create a textfile that has the following structure: You have two columns(one for the x values and one for the y-values) and then I want to get:
x(1) y(1)
x(2) y(2)
x(3) y(3)
and so on.
does anybody here know how this can be done?
Réponse acceptée
Plus de réponses (2)
ES
le 23 Août 2013
1 vote
Easier way is to use diary function.
diary on
Print everything on the command window using disp, and let diary take care of it.
and then switch off diary.
Nabin Bera
le 1 Juin 2016
0 votes
i cant write my output data into a .txt file in matlab 2015a.
Catégories
En savoir plus sur Environment and Settings 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!