Filter löschen
Filter löschen

How to choose one contour?

5 Ansichten (letzte 30 Tage)
Shahin Safazadeh
Shahin Safazadeh am 28 Feb. 2018
Kommentiert: Shahin Safazadeh am 28 Feb. 2018
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!)

Antworten (1)

Jan
Jan am 28 Feb. 2018
Bearbeitet: Jan am 28 Feb. 2018
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 Kommentar
Shahin Safazadeh
Shahin Safazadeh am 28 Feb. 2018
Thank you, Jan. So, I can customize "h". It worked very nice. Great ...

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by