How to create list of points from meshgrid output?
71 ビュー (過去 30 日間)
古いコメントを表示
I need a grid, but not is the meshgrid matrix format. How to convert it to list of points like [x1 y1; x2 y2; x3 y3; ...]
0 件のコメント
採用された回答
Guillaume
2015 年 2 月 25 日
[x, y] = meshgrid(1:5, 1:7);
points = [x(:), y(:)]
3 件のコメント
MANOJ KUMAR
2020 年 9 月 13 日
how do i use these points one by one.like say i have taken first pair of points then use it in a equation now i want to take next pair of points to use in that equation and then third point and so on...
Yunshen Huang
2021 年 7 月 8 日
for i =1:size(points,1)
point = points(i,:);
...
end
just use a for loop
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!