- Use contourc to find that specific contour. It will be a piecewise linear curve.
- Find the point where y is maximum. That will also tell you the x coordinate at that point.
How to find the coordinate of the point on (180) contour line when y(max)?
조회 수: 3 (최근 30일)
이전 댓글 표시
How to find the coordinate of the point on (180) contour line when y(max)?
Code of the contour line:
clear
x = 0:0.1:3;
y = -2:0.1:3;
[X,Y] = meshgrid(x,y);
Z = 1000*(X.*exp(-X.^2-Y.^1));
contour(X,Y,Z,[90 180],'ShowText','on')
댓글 수: 0
답변 (2개)
John D'Errico
2024년 1월 24일
Easy.
댓글 수: 1
Stephen23
2024년 1월 24일
Extracting and working with the data from the CONTOURC output matrix is rather... tedious and fiddly.
There are several wrappers on FEX to make it easier to work with that data, e.g. :
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!