I am running simulations using networks of neurons and at the end I want to record the temporal traces of voltage of my 100 cells. As you probably know it is absolutely possible to do, but in my case I am expending long time just by writing the vectors to .m files since I am creating two columns data arrays for each cell, where the first is time and the second voltage. The problem I thing arises from using cycles like this
Code: Select all
for(r=0;r<size_v;r+=1){
sprint(strg.str,"t_v=rec_list_t_%s%g.o(%g).x(%g)",end,i,n_cels,r)
execute(strg.str)
sprint(strg1.str,"v=rec_list_v_%s%g.o(%g).x(%g)",end,i,n_cels,r)
execute(strg1.str)
traces_file.printf("%g %g\n", t_v,v)
}
end=P,i=index1,ncel=index of the cell, r=iteration variable,t_v=time,v=voltage
Question A: Is there any more efficient way to do the same but in an optimized way?
Question B: Is there any way to record only during a period of time much shorter than t stop I mean something like if(t>=tstart &&t<=tstp){vec.record(..)...} ?
Thanks a lot for any comment
Oscar Javier