find index of points in meshgrid under the line

10 ビュー (過去 30 日間)
Abhishek Saini
Abhishek Saini 2019 年 4 月 23 日
コメント済み: KSSV 2019 年 4 月 23 日
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. Capture.JPG

回答 (1 件)

KSSV
KSSV 2019 年 4 月 23 日
Read about knnsearch. You will get the the required/ nearest indices for the given line from the grid.
  4 件のコメント
KSSV
KSSV 2019 年 4 月 23 日
I got your question......the answer works.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by