### Sampling a vector with variable time step

Posted:

**Tue Jul 24, 2012 10:43 am**Hello,

Can someone give me an advice how to sample a vector f(t) (voltage), which is drawn by NEURON GUI with variable time step? I basically need values of f(t) at equally spaced time points ti for a usual FFT.

I tried to export it (pick Vector->save to file) and perform interpolation, so that f(t) is evaluated in equally spaced time points. But NEURON exported f(t) with some "flattened" time points, so function values are ambiguous:
this is obviously due to round-error of time, but how can I deal with it?

Thank you!

Can someone give me an advice how to sample a vector f(t) (voltage), which is drawn by NEURON GUI with variable time step? I basically need values of f(t) at equally spaced time points ti for a usual FFT.

I tried to export it (pick Vector->save to file) and perform interpolation, so that f(t) is evaluated in equally spaced time points. But NEURON exported f(t) with some "flattened" time points, so function values are ambiguous:

Code: Select all

```
ti f(ti)
1024 0.400798
1024 0.400948
```

Thank you!