If I code such as this:
for t=1:nt
Z = Zwat + dQ*dt*idx2 - sigma*dt ;
end
Where dt is my time step and, for one of my runs, nt=10,000. I save the variable Z every 50 time steps.
Will my sampling frequency then be 50*(dt^-1), for the purposes of doing a FFT using the built in MatLab function?
If you originally sample at dt, and then resample this data keeping 1 for every 50 pts, then your new sample time is 50*dt, and your new sample rate it 1/(50*dt), and these new values are what you’d use in Matlab (or anywhere else). Was this your question?