Smooth curve between points in 3D

14 ビュー (過去 30 日間)
Mahi Nazir
Mahi Nazir 2013 年 11 月 14 日
回答済み: Walter Roberson 2013 年 11 月 14 日
I have a 3D plot (plot3). Along the z axis I have discrete points, Each time the function is called, a point is plotted along the z axis.I want a smooth curve along those points. Kindly help. Thanks

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 11 月 14 日
The problem with a smooth curve is that you need to know the curvature at each (3D) point in-between the known points. Which is equivalent to having to calculate the function at each of those points. Or, if you know the formula for the function, taking the partial derivatives and working out from them how far along you can go before continuing on in a straight line would be "too far" from the real curve and putting an adjustment there.
Some people use cubic splines to draw smooth curves. I my view, cubic splines "look pretty" but are unjustified if determining the actual value at any particular intermediate point is going to happen. Don't confuse the approximation with the real thing.

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by