Effacer les filtres
Effacer les filtres

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 vues (au cours des 30 derniers jours)
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 commentaire
Jan
Jan le 17 Juil 2017
Modifié(e) : Jan le 17 Juil 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)?

Connectez-vous pour commenter.

Réponse acceptée

Jan
Jan le 17 Juil 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.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by