Is it possible to make a meshgrid wraparound
1 次查看(过去 30 天)
显示 更早的评论
Is there a way to make a mesgrid and have the edges wraparound?
Thanks
采纳的回答
Walter Roberson
2022-3-8
x = linspace(0,1,7);
y = linspace(0, 2*pi, 5);
[X, Y] = meshgrid([x, x(1)], [y, y(1)])
Note however, that functions that require meshgrid "plaid" inputs often require that the inputs be sorted, and may reject wrap-around.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!