problem with save Ascii file
-
- Posts: 38
- Joined: Fri Aug 27, 2010 7:23 am
problem with save Ascii file
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?
-
- Site Admin
- Posts: 6303
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: problem with save Ascii file
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.
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.