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!