How to Interpolate a value in between valures

2 visualizzazioni (ultimi 30 giorni)
Sebastian
Sebastian il 12 Gen 2018
Hey there. I have this really simple problem which i cant seem to figure out. i have two vectors which i want to interpolate for the x values:
if true
z=[166 173 182 195 216 252];
x=[1.31 1.36 1.44 1.54 1.71 1.99] ;
xi=linspace(1.31,1.99,100);
zi=interp1(x,z,xi);
finish=[xi;jo]'
end
how can i make sure that for xi it uses all my data for when it is not a linear function?

Risposte (0)

Categorie

Scopri di più su Interpolation in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by