Page 1 of 1

problem with save Ascii file

Posted: Wed Oct 27, 2010 4:10 pm
by melissamou
Hi Ted, i try to save the membrane potential of different points which is function of time to a ascii file. i click the window and then choose the print & file window manager, then select the window which including these potential lines and "print" as ascii. but i open it use wordpad, i found the last line is" unlabeled lines" , because of the line, i cant use textread commond in matlab to read the file. do you know how to solve this problem?

Re: problem with save Ascii file

Posted: Wed Oct 27, 2010 5:10 pm
by ted
I/O programming is a necessary evil that you will have to learn to live with. Here are a couple of suggestions for how to deal with your immediate problem:
1. Write your own code that reads each number, one at a time from the file
2. Forget about using the PFWM. Use Vector record to capture the values you want during a simulation, and then write those values to one or more text files after the end of the simulation.