2D contour of X,Y,Z vectors
조회 수: 5 (최근 30일)
이전 댓글 표시
Hey all,
so i have X,Y vectors which their values are not positive integers and i have another vector z.
i created a matrix that maches between the values in Z to their coresponding X,Y coordinates.
i need to have a 2D contour plot as shown in the attached image -how can i do it?
thank you!
댓글 수: 0
답변 (1개)
Bjorn Gustavsson
2019년 1월 24일
If you've made a matrix Z corresponding to the x and y-values (that seems to be well-behaved) this should work:
contour(x,y,z)
Look at the help for contour for more information. If you need to directly make a contour plot from vectors alos look at
tricontour
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!