vertices in contour matrix

3 次查看(过去 30 天)
strunack
strunack 2013-4-8
Dear Friends, I need a help regarding contour plot. I plot contour(X,Y,Z,20). Depending on level value, some contours are closed circles and some are not. Close circles starts usually starts from lowest value (typical 0.001). As level increases with fine step, at some particular value circle becomes open with various other patterns. My task is to identify the largest level for a closed circle.
I tried with
[c, h]=contour(R,Z,F,[i]);
i being step index in for loop. Initially I thought I will retrieve the individual plots and check for closeness. But I find the position of vertices are quite random.
My questions are
1. Is there a way to find vertices value and index position in c matrix. 2. Do you suggest a any other better way for identifying last closed circle.
With thanks

回答(1 个)

Chad Greene
Chad Greene 2014-5-22
The C2xyz function may help with this.

类别

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