Intersection of two surfaces
27 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alessandraro
am 7 Mär. 2019
Kommentiert: Star Strider
am 8 Mär. 2019
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?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 7 Mär. 2019
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!