How can I write a magic(5) matrix to a text file with special delimiters?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to a matrix in txt for with the delimeter %%%
0 commentaires
Réponse acceptée
Chunru
le 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Low-Level File I/O 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!