interpolation for ode problems
Show older comments
What is the use of interpolation? Can I use this function for random data? especially for the application of ode
Accepted Answer
More Answers (1)
Jan
on 4 Nov 2016
You get an exhaustive explanantion of the meaning of interpolations, when you ask WikiPedia are spend the time to search for another reference in the forum. It is inefficient, if the forum users do this web search for you an post the links here. So please try this by your own at first and ask a specific question, if a detail does not get clear.
An interpolation is used to resample a signal with another frequency. If you've measured a value e.g. twich at t=0 and t=1 only and want to get the value at t=0.6, you can interpolate the signal by (Pseudo-code):
Signal_of_intermediate_t = Signal(t=0) * 0.4 + Signal(t=1) * 0.6;
This is a linear interpolation between the two measurement points. You could get 1000 interpolated points between the two times also. This linear interpoltion is weak, if the signal is noisy: for random data, you cannot assume that the signal has a linear progress between the points.
For the "application in ODE" -what ever this means- consider, that Matlab's ODE integrators handle only smooth functions reliably. A linear interpolation has discontinuities in the gradient, such that the step size control is out of its specifications. This might let the integrator stop with an error message, if you are lucky. Without luck, you get a result with a low accuracy without noticing it. Therefore linear interpolations are forbidden in ODEs, but higher order methods wil work.
2 Comments
Walter Roberson
on 5 Nov 2016
kiran gk comments
I don't think it is useful answer
Walter Roberson
on 5 Nov 2016
kiran gk: what information would you have needed in order for the response to be useful?
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!