how can i get an interpolation formula?

5 Ansichten (letzte 30 Tage)
rodrigo pallacan acuña
rodrigo pallacan acuña am 12 Mai 2021
Beantwortet: Tanmay Das am 6 Aug. 2021
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];
tt=linspace(1,5);
xq=1.5;
vq1=interp1(x,v,tt,'spline');
plot(x,v,'o',tt,vq1,'r')
legend('puntos','spline','location','southeast')

Antworten (1)

Tanmay Das
Tanmay Das am 6 Aug. 2021
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.

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by