Intersection of two surfaces

29 ビュー (過去 30 日間)
Alessandraro
Alessandraro 2019 年 3 月 7 日
コメント済み: Star Strider 2019 年 3 月 8 日
Hi. I need to plot the intersection line of two surfaces. The two surfaces are defined using the surf function of matlab. Can anyone help me?

採用された回答

Star Strider
Star Strider 2019 年 3 月 7 日
More detail (such as the data or surfaces themselves) would be helpful.
The approach I would use is to subtract one surface from the other. Where this is equal to 0 is where they intersect. An easy way to find the (x,y) coordinates of the intersection (when you have done the subtraction), is to use the contour (link) function to draw the contour of the result of the subtraction. Use the technique described in Contours at One Level (link), with the level defined as [0,0]. Also see the section on Output Arguments (link). You may have to experiment a bit, depending on how your surfaces are defined.
  2 件のコメント
Alessandraro
Alessandraro 2019 年 3 月 8 日
Thank you very much. It was really helpful.
Star Strider
Star Strider 2019 年 3 月 8 日
As always, my pleasure.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by