How to create list of points from meshgrid output?

70 次查看(过去 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; ...]

采纳的回答

Guillaume
Guillaume 2015-2-25
[x, y] = meshgrid(1:5, 1:7);
points = [x(:), y(:)]
  3 个评论
MANOJ KUMAR
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...

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by