Effacer les filtres
Effacer les filtres

How to write to a text file without overwriting existing file content in matlab

4 vues (au cours des 30 derniers jours)
Matrix a in each run will be created new values and I want to save output values in each run to the same file without overwriting existing file.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 29 Juin 2015
a=rand(4)
b=[1 2 3;4 5 6]
dlmwrite('file.txt',a)
dlmwrite('file.txt',b,'-append')

Plus de réponses (0)

Catégories

En savoir plus sur Cell Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by