Linearly Interpolate Two Arrays of Different Sizes

조회 수: 5 (최근 30일)
Alex Lu
Alex Lu 2016년 2월 9일
편집: Alex Lu 2016년 2월 9일
I have an array of x = 3597 x 2 and an array of y = 720 x 2, with x1 as my first column, x2 as my second etc. My goal is to alter x to equal 720 x 2, such that x1 and y1 values are the same, by linearly interpolating x to find the corresponding x2 value for y1. How would I go about doing this, is there a way to use the interp1 function to accomplish it? Thank you.
IE: X =
0.036 0
0.0148 19.5346
0.0236 19.8820
0.0348 20.3196
0.0436 20.7314
0.0545 21.0402
Y =
0.00457 2.74096
0.03116 3.12988
0.0809 3.7966
0.13249 3.77808
0.18199 4.167
0.2315 4.55592
Want to find X2 Value at Y1 = 0.03116

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by