Error using griddedInterpolant.Grid coordinate arrays have inconsistent size.

1 vue (au cours des 30 derniers jours)
MattyK
MattyK le 14 Fév 2019
Commenté : MattyK le 15 Fév 2019
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.

Réponse acceptée

Matt J
Matt J le 14 Fév 2019
F = griddedInterpolant({lat,lon},data);
  1 commentaire
MattyK
MattyK le 15 Fév 2019
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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 3-D Scene Control dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by