If you want the contour (x,y) values, you have to ask for them:
figure(1)
[C,h] = contour( ...
The (2xN) ‘C’ array will have the (x,y) values of the contour lines. The first column in each has the contour value as the first row and the number of (x,y) values defining the contour as the second row. (It requires some coding to extract all of them effectively.) Use the LevelList property to find the values of the contours (these will match the first row and first column of each contour) so you can then use find to locate the beginning of each (x,y) contour matrix.
See the documentation for contour for details. There is a link to ‘Contour Properties’ that lists all of them.
Best Answer