フィルターのクリア

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 Center および File ExchangeGeographic Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by