dlmwrite problem within loop
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
i want to write matrix that result from loop in a txt file comma delimited i write the following command:
dlmwrite(['Test_data_Proposed', num2str(flag),'.txt'] , all_measured,'delimiter',',');
as flag is the counter within loop, all_measured is the matrix the error that all txt files have the same length although they don't. dlmwrite fixes the txt file length to 795 while all_measured values could exceed 1000 or less. How Could i fix this issue?
6 Kommentare
Walter Roberson
am 19 Dez. 2017
dlmwrite() is intended to overwrite the existing content unless you use the -append flag .
Antworten (0)
Siehe auch
Kategorien
Mehr zu Text Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!