Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
How can I check each elements when it one row and two columns with list of all the x and y coordinates.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I have list of the y and x coordinates which I have called it 'coords'. Also, I have another list 'S' that contains list of x and y coordinates but this list bigger than the first one due to contain some the y and x coordinates in or out of the first list ' coords'. as shown in the attachments.
**what I am looking, to check each coordinats y x from the second list 'S' with the first list 'coords':
When any S(1:length(S) , 2) = = any coords(1:length(coords), 2)
-Save the first coordinates y x from the S list coordinates in S ( as a first element) and ignoor the others.
When S(1:length(S) , 2) not = any coords(1:length(coords), 2)
-Save the first coordinates y x from the S list coordinates in S (as a second elements) and ignoor the others.
0 commentaires
Réponses (1)
Image Analyst
le 28 Déc 2019
Use ismember()
1 commentaire
Mohammed Alammar
le 29 Déc 2019
Modifié(e) : Mohammed Alammar
le 29 Déc 2019
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!