Making matrix from coordinates

7 次查看(过去 30 天)
I have 460 x and y coordinates. How do I make a matrix ? Thanks in advance.

回答(1 个)

Ameer Hamza
Ameer Hamza 2020-10-11
编辑:Ameer Hamza 2020-10-11
See meshgrid()
x; % vector of x-values
y; % vector of y-values
[X, Y] = meshgrid(x, y)
  5 个评论
Ameer Hamza
Ameer Hamza 2020-10-11
Something like this
x = [1,2,3];
y = [2,3,4];
[X, Y] = meshgrid(x, y);
plot(X(:), Y(:), '+')

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by