How do I store a 32x4000 matrix onto a .txt file?
1 view (last 30 days)
Show older comments
How do I store a 32x4000 matrix onto a .txt file? Can Someone provide the simplest way. TIA
0 Comments
Answers (1)
dpb
on 10 Jun 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...
0 Comments
See Also
Categories
Find more on String Parsing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!