Hi,(adsbygoogle = window.adsbygoogle || []).push({});

Does anyone know how to design a 8x lagrange interpolation filter in matlab?

From what I understand, let say my input is

input = [1 2 3 4 3 2 1]

let say if I want to interpolate by 2, then I insert 0 between every

sample.

input_pad = [1 0 2 0 3 0 4 0 5 0 4 0 3 0 2 0 1]

then I apply the formula

y(kT)=1.0*x(kT) + 1.0*x(k-1)T

to get the output (assume this filter is 2tap). so a filter of [1 1]

is essentially a hold

input_interp = [1 1 2 2 3 3 4 4 5 5 4 4 3 3 2 2 1 1]

As for quadratic, it would be in the form of

y(kT)=a*x(kT) + b*x(k-1)T + c*x(k-2)T

where [a b c] is the filter coefficient that I have to determine. For

8x interpolation, I would inject 7 zeros between samples prior to

filtering.

So my question is, how do I determine these fixed coefficient [a b

c]? PS: I found [0.5 1 0.5] being the filter for linear interpolation, which works when I implemented it.

Thank you

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Lagrange interpolation filter design in matlab

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads for Lagrange interpolation filter | Date |
---|---|

Kalman filter and dt jitter | Oct 21, 2017 |

Interpolating a zoomed in colorscale image in Matlab | Jun 12, 2016 |

[Matlab] Which is the good solution My vs. School - curve fitting? | Nov 3, 2014 |

MATLAB help: Interpolating an array of data to create a function | Dec 29, 2012 |

Find all roots of an interpolating function in Mathematica | Jun 8, 2012 |

**Physics Forums - The Fusion of Science and Community**