Pcolor Error: Matrix Dimensions Must Agree

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일

0 개 추천

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.

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

카테고리

도움말 센터File Exchange에서 Functions에 대해 자세히 알아보기

질문:

2017년 11월 10일

댓글:

2017년 11월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by