Parameterization of a set of vectors by n number of equally spaced points

1 回表示 (過去 30 日間)
Gee
Gee 2019 年 7 月 18 日
回答済み: Walter Roberson 2019 年 7 月 18 日
I have an array of 60 X, Y coordinates for a path, here is a snippet:
1012 1266
1021 1255
1024 1244
1027 1229
1028 1206
1029 1171
1029 1148
1029 1140
1032 1108
1035 1076
1037 1043
1040 1009
I'm new to parameterization and need to parameterize the path by 200 equally spaced points but am not sure where to start.
Any help would be much appreciated.

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 7 月 18 日
newx = linspace(min(x), max(x), 200);
newy = interp1(x, y, newx);

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by