Linearly Interpolate Two Arrays of Different Sizes
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!