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
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
2017년 11월 10일
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에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!