I have two 3D coordinates, e.g. x1,y1,z1 = 1,1,1 and x2,y2,z2 = 10,11,12 I would like to interpolate between these two coordinates and return the values of the coordinate at a specific plane, e.g. y=5

 採用された回答

Stephen23
Stephen23 2017 年 2 月 11 日
編集済み: Stephen23 2017 年 2 月 11 日

1 投票

>> p1 = [1,1,1];
>> p2 = [10,11,12];
>> M = [p1;p2];
>> interp1(M(:,2),M,5)
ans =
4.6 5 5.4

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Interpolation についてさらに検索

質問済み:

2017 年 2 月 11 日

コメント済み:

2017 年 2 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by