Search for the Y coordinate knowing the X coordinate
4 ビュー (過去 30 日間)
表示 古いコメント
Hi. Probably a trivial question.
I have a .txt file mx3 double.
A % .txt file mx3 double
I want to determine the coordinate present in the figure (the outermost one to the right).

I started by determining the maximum value in the x direction by finding the coordinate.
coord_x = A(:,1);
X = max(coord_x);
How can I determine the value of y (-83.5175)?
採用された回答
Voss
2022 年 11 月 29 日
coord_x = A(:,1);
coord_y = A(:,2);
[X,idx] = max(coord_x);
Y = coord_y(idx);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!