Azzera filtri
Azzera filtri

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

3 visualizzazioni (ultimi 30 giorni)
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 Commento
Jan
Jan il 17 Lug 2017
Modificato: Jan il 17 Lug 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)?

Accedi per commentare.

Risposta accettata

Jan
Jan il 17 Lug 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.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by