MATLAB: How to resample the data

interp1interpolationresample

Hi,
I am looking for a method to standardise exercise duration. I measured core temperature during 60 minutes of exercise. However, due to exhaustion not all participants were able to complete the experiment. For those participants I want to resample the data, so that all participants have an equal sample number in the exercise phase. I have tried interp1, which works. However, I want to interpolate inbetween the temperatures I measured. So that the final temperature I measured, stays the final temperature measurement.
Does anyone have suggestions?
Cheers!

Best Answer

If the final time point in your query x (time) vector is the same, then the final temperature will be the same. If it's not, then attach your data and code to prove otherwise.