interpolate 3 dimensional arrays (in time and space)
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
wave_buoys
am 28 Aug. 2018
Kommentiert: wave_buoys
am 29 Aug. 2018
Hi all,
I have 3D matrix 180x90x120 which is equal to lonxlatxtime. In space, the data has 1 degree resolution (e.g. longitude ranges from 1 to 180), while the time interval is 3 hours (e.g. 3h, 6h, 9h.....).
Now I want to interpolate data to get a finer resolution of 0.5 degree and with 1-hour interval, so the new matrix would be 360x180x360.
Could you please help?
Thanks
4 Kommentare
Matt J
am 28 Aug. 2018
Bearbeitet: Matt J
am 28 Aug. 2018
No, do not use griddata for this. KL's suggestion of griddedInterpolant was appropriate. See also my second answer.
Matt J
am 28 Aug. 2018
Bearbeitet: Matt J
am 28 Aug. 2018
Now I want to interpolate data to get a finer resolution of 0.5 degree and with 1-hour interval, so the new matrix would be 360x180x360.
Those will not be the new dimensions. If you sample from 1 to 180 at intervals of 0.5, you will obtain 359 points, not 360. Similarly for the other dimensions.
Akzeptierte Antwort
Siehe auch
Kategorien
Mehr zu Interpolation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!