writing char array to a text file
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Danielle
am 25 Aug. 2011
Kommentiert: maira alvi
am 5 Aug. 2015
Hello ! I have a .mat file with two variables. One is char array and the other double. Im able to save out the 2nd variable using save('a.txt', 'var2',' -ASCII') but im unable to save the var1 since its a combination of chars and numbers. csvwrite isnt working either. Please advice Thank you
0 Kommentare
Akzeptierte Antwort
Fangjun Jiang
am 25 Aug. 2011
There are many ways, depending what you want.
a=['adc',char(10),'123']
dlmwrite('test.txt',a,'delimiter','');
edit test.txt
2 Kommentare
Weitere 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!