problem in curve fitting

4 ビュー (過去 30 日間)
JIANING
JIANING 2024 年 5 月 15 日
コメント済み: JIANING 2024 年 5 月 15 日
hey,guys
Recently I am learning the PSO algorithm, I use the spline curve interpolation that comes with matlab to get a set of smooth data of x, y, z, and I want to fit them with some arcs to apply to my environment。
How do I fit discrete points with arcs of fixed curvature and make these arcs G1 continuous?Is there a difference between two-dimensional and three-dimensional environments?

回答 (2 件)

John D'Errico
John D'Errico 2024 年 5 月 15 日
編集済み: John D'Errico 2024 年 5 月 15 日
C1 continuous?
Is there a difference? Absolutely YES.
C1 continuity, using circular "arcs" in 3-d? UGH. I'm a career mathematician, with 40 years experisnce working with splines. I'd not try it. I think you may be looking for something more sophisticated than you really need.
I'd suggest you start with tools for scattered interpolation, maybe griddata, maybe scatteredInterpolant.
  1 件のコメント
JIANING
JIANING 2024 年 5 月 15 日

サインインしてコメントする。


Image Analyst
Image Analyst 2024 年 5 月 15 日
For what it's worth, see my attached spline demos.

カテゴリ

Help Center および File ExchangeCurve Fitting Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by