Clear Filters
Clear Filters

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

5 views (last 30 days)
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 Comment
Jan
Jan on 17 Jul 2017
Edited: Jan on 17 Jul 2017
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)?

Sign in to comment.

Accepted Answer

Jan
Jan on 17 Jul 2017
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!