2D contour of X,Y,Z vectors

조회 수: 5 (최근 30일)
Adi
Adi 2019년 1월 24일
댓글: Adi 2019년 1월 27일
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!

답변 (1개)

Bjorn Gustavsson
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 CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by