How do I write a vector into a text file that just lists all the numbers stored in the vector? I ultimatley want to import the file into Excel or origin to do some data anysis. I've tried vwrite and fwrite but they don't seem to work for me.
Thanks,
Elisa
saving a vector into a file
-
ted
- Site Admin
- Posts: 6395
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
The Vector class's vwrite and fwrite produce binary files. Excel can't read those. You need
to generate a plain text file. Use the Vector class's printf method. Read about it here
http://www.neuron.yale.edu/neuron/stati ... tml#printf
and read about the File class here
http://www.neuron.yale.edu/neuron/stati ... .html#File
to generate a plain text file. Use the Vector class's printf method. Read about it here
http://www.neuron.yale.edu/neuron/stati ... tml#printf
and read about the File class here
http://www.neuron.yale.edu/neuron/stati ... .html#File