Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • CSPM (from SPM12) includes a function that will create a moving average.
  • Start CSPM (to add the folder to the path)
  • Load the variable into matlab ; Import data, and select an excel or text file(see here for details).
  • Get the variable name of the timetrend
  • Set the number of samples over which to calculate the average

...

>> legendĀ {'Original' 'Smoothed'}

...

To save, either copy the smoother timetrend values from the command window, or use the save command with the -ascii option:

>> save smoothed_tt.txt tma -ascii