I'm trying to use a 5-point running mean for a timeseries. The timeseries has three different data values for every 0.04 seconds. I've tried to find a way to do it but I keep getting an error, what code should I be using? This is the code I've used:
CivilEngBath, I recommend that you take a look at using timetables, not timeseries. smoothdata on timetables does what you want. In recent versions of MATLAB, you can convert from timeseries to timetable using the timeseries2timetable function.