- 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)?
2 ビュー (過去 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')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1598326/image.png)
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!