find index of points in meshgrid under the line
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have 2D mesh grid of 501*2001. I want to get indices of values for the grid points in straight line to change the values of grid amplitude as shown in figure.
0 commentaires
Réponses (1)
KSSV
le 23 Avr 2019
Read about knnsearch. You will get the the required/ nearest indices for the given line from the grid.
4 commentaires
Voir également
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!