irishtree.blogg.se

Matlab interp1
Matlab interp1













matlab interp1 matlab interp1

We can tell Matlab to use a better interpolation scheme: cubic polynomial splines like this. The linearly interpolated example isn't too accurate. The function we sample above is actually f(t) = exp(-t). For example, suppose we have this data that describes the value of f at time t. We often have some data that we have obtained in the lab, and we want to solve some problem using the data. interpolate on f(t) then invert the interpolated number.method 2: switch the interpolation order.















Matlab interp1