I have a 2D array data
and I plot it using surf
. In the surface plot, there is a region in which the elements in data
are greater than 0.9*max(max(data))
. I want to 'outline' the region. How can I do that?
If I type
data_copy = data;
data_copy(data<0.9) = nan;
Then if I use scatter plot together with the original surface plot to plot the coordinates of data_copy
that are not nan, I can 'shade' the region. But I just want the 'boundary' of the region. How to do that?