How do i create a 2D contour plot within a specified shape?

4 ビュー (過去 30 日間)
Christopher Papadopoulos
Christopher Papadopoulos 2016 年 3 月 27 日
回答済み: Image Analyst 2016 年 3 月 27 日
Hey there,
I basically have this shape (an upper and lower curve on the shape and 2 sides), I can draw the shape on a plot using the co-ordinates for the curves and the sides, however, I want to create a contour plot for this shape for different co-ordinates within the shape.
Can anyone tell me how I can go about doing this please?
Thanks

回答 (1 件)

Image Analyst
Image Analyst 2016 年 3 月 27 日
Please attach a drawing so we can visualize exactly what you want.
At this point about all I might suggest is to use poly2mask() to create a solid shape, then use bwdist() to create a Euclidean Distance Map, which you can then threshold or pass into contour().

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by