Create a 2D grid from two matrices.
6 次查看(过去 30 天)
显示 更早的评论
I need to create a 2D mesh like the following:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157027/image.jpeg)
I have a matrix (8x10 digits) with the x-values and a matrix of the corresponding y-values but am unsure how to go about making such a figure. Please note that this is not a surface rather just an irregular 2D grid.
Any help is appreciated!
5 个评论
Geoff Hayes
2016-3-12
Fiona - how do you expect to get the pattern that you have shown in the first image given the data from above? Do you have any other information that would allow you to create the "warped" mesh?
采纳的回答
KSSV
2016-3-8
As you said you have 8X10 matrices of x and y. Use the function plotgrid from the link:
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NaNs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!