PARabolic FILling midpoints: PARFIL

Inserts mid points ito each interval of x,y data: all(diff(x)>0)=true
2.5K Downloads
Updated 6 Mar 2006

No License

FILls midpoints into vectors/matrices by PARabolic interpolation as would do Y=interp1(x,y,X,'parabolic')with X=sort([x;( x(1:end-1)+x(2:end) )/2];
For matrices PARFIL works on columns. If only rows match length(x),
then y will be transposed.
For regular data (equidistantly sampled, i.e. std(diff(x))=0),
Y is identical with INTERPOL(y,1,DEG) in inner intervals,(completely identical for DEG=3), but INTERPOL is somewhat
faster than PARFIL

DEMO is included in help and given by
parfil()

For very smooth data results are close to that of SPLINE

For somewhat noisy data can become method of choice (better than linear, pchip or spline interpolations)

Cite As

Vassili Pastushenko (2024). PARabolic FILling midpoints: PARFIL (https://www.mathworks.com/matlabcentral/fileexchange/10229-parabolic-filling-midpoints-parfil), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Interpolation in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0