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.