Making matrix from coordinates
7 次查看(过去 30 天)
显示 更早的评论
I have 460 x and y coordinates. How do I make a matrix ? Thanks in advance.
0 个评论
回答(1 个)
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
2020-10-11
Something like this
x = [1,2,3];
y = [2,3,4];
[X, Y] = meshgrid(x, y);
plot(X(:), Y(:), '+')
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!