Error using griddedInterpolant.Grid coordinate arrays have inconsistent size.

2 ビュー (過去 30 日間)
MattyK
MattyK 2019 年 2 月 14 日
コメント済み: MattyK 2019 年 2 月 15 日
Good day
Kindly help
I am trying to use griddedInterpolant on my gridded data with the following dimensions:
latitudes length = 129
longitude length = 161
size(data) = 129 161
> F = griddedInterpolant(lat,lon,data);
Kindly suggest what I can do to get rid of the error. Thanks.

採用された回答

Matt J
Matt J 2019 年 2 月 14 日
F = griddedInterpolant({lat,lon},data);
  1 件のコメント
MattyK
MattyK 2019 年 2 月 15 日
Thank you so so much. It worked :)
It was just complaining about the below error since my latitudes where decreasing. Howeever I managed to use flipud(lat) to fix it. Thanks once more.
Error using griddedInterpolant
The grid vectors must be strictly monotonically increasing.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange3-D Scene Control についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by