problem with save Ascii file

Using the graphical user interface to build and exercise models. Includes customizing the GUI by writing a little bit of hoc.
Post Reply
Posts: 38
Joined: Fri Aug 27, 2010 7:23 am

problem with save Ascii file

Post 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?
Site Admin
Posts: 5885
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: problem with save Ascii file

Post 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.
Post Reply