How to Interpolate a value in between valures
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Interpolation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!