I have an Nx2 matrix with columns as ‘Time’ and ‘Progress’.
Progress is integral and Time is a real value corresponding to each progress unit.
I want to reverse the dependency and make ‘Time’ integral and output the fractional ‘Progress’ at every unit time step.
How can this be done?
Use
interp1(Progress,Time,TimesWanted)whereTimesWantedis a new vector with the times that you want. For example:gives me:
which is the progress at
TimesWantedobtained by interpolation.