I want to do 1-D interpolation such that the interpolated value for a given point will be equal to the value of the point which is closest and on the left (i.e., smalller than the given point) of the data set. 'Nearest' method of INTERP1 function does not work as I want since the nearest point might be to the right of (i.e., larger than) the given point.
MATLAB: How to do 1-D interpolation with INTERP1 to find the nearest value to the left of the point (i.e. a zero-order hold curve) in MATLAB
interp1MATLAB
Related Question
- Does the output sound using ‘audioplayer’ or ‘soundsc’ not match with the sound I recorded
- Is there a bug in the INTERP2 function within MATLAB 6.5 (R13) when using the “*” methods
- Help using interp1 to resample data
- How to convert a BAM file to SAM and GFF file to GTF for use in featurecount
- The use of Interp1
- How to solve an ODE defined by both a function and data
Best Answer