How to choose one contour?
1 回表示 (過去 30 日間)
古いコメントを表示
Using the syntax "contour", 8 concentric contours are plotted around a surface. However, I only need the outer most contour. How could I get only the outer most contour? (using "contour(image,1)", I will get the inner most contour!)
0 件のコメント
回答 (1 件)
Jan
2018 年 2 月 28 日
編集済み: Jan
2018 年 2 月 28 日
To display a single contour line at a particular value, define v as a
two-element vector with both elements equal to the desired contour level.
So all you have to do is to define k properly. Or:
[C,h] = contour(image, 8)
And now select the wanted elements from the output.
参考
カテゴリ
Help Center および File Exchange で Contour Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!