Попробуйте, если у вас более старая версия MATLAB
[C,h] = contour(peaks(30),-8:2:8);
h1 = get(h,'children');
X = get(h1,'xdata');
Y = get(h1,'ydata');
hold on
plot(X{5},Y{5},'.r')
hold off
Это для 2014 года и новее
[C,h] = contour(peaks(30),-8:2:8);
i = 1;
slev = 4; % draw specific level
hold on
while i < size(C,2)
ncnt = C(2,i); % number of points for current contour
if abs(C(1,i) - slev) < 0.01 % check if it's desired contour
icnt = i+(1:ncnt);
plot(C(1,icnt), C(2,icnt), '.r')
break;
end
i = i + ncnt + 1; % next contour
end
hold off