how can i get an interpolation formula?

3 次查看(过去 30 天)
rodrigo pallacan acuña
回答: Tanmay Das ,2021-8-6
hi i would like to get an interpolation formula using: spline, pchip and makima for example:
clc;clear;close all
x=[1 2 3 4 5];
v=[0 1 0 1 0];

回答(1 个)

Tanmay Das
Tanmay Das 2021-8-6
You can look into the interp1 function for 1-D data interpolation. You can go through various Interpolation methods to know more about implementing methods like spline, pchip and makima.

Community Treasure Hunt

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

Start Hunting!

Translated by