Filter löschen
Filter löschen

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 Ansichten (letzte 30 Tage)
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 Kommentar
Jan
Jan am 17 Jul. 2017
Bearbeitet: Jan am 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)?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jan
Jan am 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.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by