how to find y axis value's opposite x axis value
1 回表示 (過去 30 日間)
古いコメントを表示
採用された回答
KL
2015 年 4 月 29 日
If both vectors are of same size, find the index of your variable from y and use it to pick the value at that position in x. A simple example is
x = [1 2 3 4];
y = [5 6 7 8];
ind = find(y==7);
x(ind);
2 件のコメント
その他の回答 (1 件)
Ilham Hardy
2015 年 4 月 29 日
>> x=[1,2,3,4,5,6];
>> y=[2,7,8,9,4,1];
>> opp_x = x(y==9)
opp_x =
4
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!