how to interpolate x with y and vice versa ?
古いコメントを表示
Find the attachment consists of two columns. 1st column should be interpolated with 2nd column and 2nd column should be interpolated with 1st column.
回答 (1 件)
ANKUR KUMAR
2018 年 9 月 14 日
Try using interp2, spline or pchip. "interpolate first coloumn with second" ????
Lets see an example. A contains the data over 10 points. If you want to interpolate A on finer intervals (say in interval of 0.1), then code would like like:
A=randi(10,1,10);
interp1((1:10),A,(1:0.01:10))
spline((1:10),A,(1:0.01:10))
pchip((1:10),A,(1:0.01:10))
Above are the three different methods of interpolating linear matrix.
Hope you can relate this simple example with your problem.
4 件のコメント
ANKUR KUMAR
2018 年 9 月 15 日
Elaborate your question might helps you to get an answer a bit more effectively.
Manoj
2018 年 9 月 15 日
ANKUR KUMAR
2018 年 9 月 15 日
カテゴリ
ヘルプ センター および File Exchange で Interpolation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!