function HourlyStepChangeFunction = HourlyStepChangeFunction(TimeSeries)

HourlyStepChangeFunction = diff(TimeSeries);