필터 지우기
필터 지우기

How to choose one contour?

조회 수: 5 (최근 30일)
Shahin Safazadeh
Shahin Safazadeh 2018년 2월 28일
댓글: Shahin Safazadeh 2018년 2월 28일
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!)

답변 (1개)

Jan
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.
  댓글 수: 1
Shahin Safazadeh
Shahin Safazadeh 2018년 2월 28일
Thank you, Jan. So, I can customize "h". It worked very nice. Great ...

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by