How do I find and assign the x and y values of a point from an index array based on the value of z?

2 次查看(过去 30 天)
Hello,
I am using an extracted column for finding a specific point.
V=F1(:,1); %F1 is the data of a matrix
When I display the data, the x, y, and z values are shown on a figure on coordinate I. Lets say if I want to have V (the first column in the matrix) scanned from top to bottom (or vice versa) for one specific point in the column to find a z value where if z>100, the one point will assign a value for x (x1) and y (y1).
What approach might come handy to find and assign the x and y value (recorded as x1 and y1) if I have an extracted column if Z>100.
  1 个评论
Jan
Jan 2017-7-17
编辑:Jan 2017-7-17
The question is not clear. Where do x,y,and z come from? For what kind of point do you "scan" in V? What is "x(x1)" and "y(y1)"? What is "Z" (uppercase)?

请先登录,再进行评论。

采纳的回答

Jan
Jan 2017-7-17
Perhaps:
index = find(F1(:,1) > 100, 1, 'last'); % or 'first'
x1 = x(index);
y1 = y(index);
But this is pure guessing only. Better improve the question.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by