How can I write a magic(5) matrix to a text file with special delimiters?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ARAH MIZORI
am 13 Sep. 2021
Beantwortet: Chunru
am 13 Sep. 2021
I want to a matrix in txt for with the delimeter %%%
0 Kommentare
Akzeptierte Antwort
Chunru
am 13 Sep. 2021
x = magic(5);
fid = fopen('test.txt', 'w');
fprintf(fid, '%f\n', x); % try different format here
fclose(fid)
type('test.txt')
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Characters and Strings 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!