Create a graph from 2 vectors and a matrix

조회 수: 2 (최근 30일)
Aigerim Sakhayeva
Aigerim Sakhayeva 2021년 7월 22일
답변: Star Strider 2021년 7월 22일
Hello. I have a problem plotting. I have X, Y, Z data (Coordinates and Height). X is 3950 data, Y is 3670 data, Z is 3950 x 3670 data. I write plot3 gives an error: Vectors must be the same lengths.
Please help ... How to make a schedule? I cannot delete or adjust the data, this is accurate data.

답변 (2개)

KSSV
KSSV 2021년 7월 22일
편집: KSSV 2021년 7월 22일
Read about pcolor and surf.
pcolor(X,Y,Z')
shading interp
colorbar

Star Strider
Star Strider 2021년 7월 22일
I would use surf or mesh:
figure
surf(X,Y,Z.', 'EdgeColor','none')
to see it from the top, add:
view(0,90)
,

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by