function ResampledData = DspResampleData(TimeVector, Data, ResampledTimeVector) % DspResampleData - Resamples the data and computes the resampled values % using a different time vector. % % ResampledData = DspResampleData(TimeVector, Data, ResampledTimeVector) % % Input: % TimeVector - Time vector of the original data % Data - Original data vector % ResampledTimeVector - Time vector to compute the resampled data vector % % Outputs: % ResampledData - Resampled data vector OriginalTimeseries = timeseries(Data, TimeVector); ResampledTimeseries = resample(OriginalTimeseries, ResampledTimeVector); ResampledData = ResampledTimeseries.Data;