MATLAB Answers


How could I find the maximum closed contour line?

Asked by Yingzhe Cui on 5 Nov 2019
Latest activity Commented on by darova
on 5 Nov 2019
My question is that how to find the maximum closed contour line.
Here's an example.
There are contour lines of the local streamfunction value.
I want to find the closed contour line with the maximum value of the local streamfunction.
How can I do that using Matlab instead of manual detection?
The background is the flow field.
Any help is appreciated.

  1 Comment

YOu can use
h = 10; % height you want the contour at
contourf(x,y,z,[h h])
To create ONE contour at specific height

Sign in to comment.





0 Answers