Data Visualisation Basic with x-y coordinate and z data value

조회 수: 2 (최근 30일)
RAJ DATTA
RAJ DATTA 2019년 8월 28일
답변: Star Strider 2019년 8월 28일
Hello, suppose I have x-y coordinate and z value as the grades of the points. How can I visualize my data in 2-D colormap ? (I want to show x-y cordinate and different colors for different values at every points inside the image).
Please help.

답변 (1개)

Star Strider
Star Strider 2019년 8월 28일
It depends what ‘x’, ‘y’ and ‘z’ are, and what you want.
If they are vectors and have sufficient density, this may work:
figure
scatter3(x, y, z, [], z, 'filled')
view(0, 90)
If they are vectors and are gridded, just use reshape to form them into matrices, then use the contour function. If they are not gridded, first use griddata to form them into matrices, then use contour.
It all depends on what you are starting with, and what you want as the end result.

카테고리

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