필터 지우기
필터 지우기

Pcolor Error: Matrix Dimensions Must Agree

조회 수: 22 (최근 30일)
Duncan Wright
Duncan Wright 2017년 11월 10일
댓글: KSSV 2017년 11월 10일
I'm trying to plot the following variables using the pcolor variable:
t1.lat = 100x1
t1.lon = 100x1
t1.u = 100x50
pcolor(t1.lon, t1.lat, t1.u)
Thanks in advance!

답변 (1개)

KSSV
KSSV 2017년 11월 10일
t1.lat = 100x1
t1.lon = 50x1
t1.u = 100x50
pcolor(t1.lon, t1.lat, t1.u)
The above works.
  댓글 수: 2
Duncan Wright
Duncan Wright 2017년 11월 10일
Please could you elaborate ? I don't understand which dimensions need to agree with which ?
KSSV
KSSV 2017년 11월 10일
Say x, y are you are lon and lat.
[X,Y]=meshgrid (x,y);
The dimensions of X,Y and u should be same.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by