# 比如X = 1:100;Y = -X.^2+30*X;plot(X,Y); hold on;index = find(Y == max(Y));plot(X(index),Y(index),'ro');