[英]how to find the corresponding point in other row of an array in matlab?
i have an array lets say 我有一个数组可以说
x = x =
1 2 2
5 8 7
now i want to get the corresponding values of a number in 2nd row. 现在我想在第二行中获取数字的相应值。 like i have number =2 就像我有数字= 2
and i want 而且我要
ans= 8 and 7 ans = 8和7
as 8 and 7 are the corresponding points for 2. 因为8和7是2的对应点。
X(2,X(1,:)==2)
should do. 应该做。 Hope you can figure out how. 希望你能弄清楚。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.