How do I store a 32x4000 matrix onto a .txt file?
Afficher commentaires plus anciens
How do I store a 32x4000 matrix onto a .txt file? Can Someone provide the simplest way. TIA
Réponses (1)
dpb
le 10 Juin 2015
"Simplest" is in eye of the beholder, perhaps...but there are a number of choices, none of which are all that complicated depending on what you want/need for level of control.
save filename.txt varname -ascii % 8 digit precision
dlmwrite('filename.txt',varname) % default delim is ','
See
help iofun
for a more comprehensive list under the Import/Export Function section and consult the doc on any which seem interesting for details. There is a "veritable plethora" of examples in the doc as well...
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!