Out of memory error with Matlab function egm96geoid
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
The function egm96geoid crashes my simulation after nearly 3000 repetitions.
The error given is:
Out of memory.
Error in egm96geoid.m (<a href="matlab: opentoline('C:\Program Files\MATLAB\R2021b\toolbox\map\mapgeodesy\egm96geoid.m', 89)">
N = G(lat, lon);
Any ideas or suggestions?
3 Kommentare
Walter Roberson
am 26 Mär. 2022
Your lat and lon are probably both arrays at that point. When you index an array with multiple indices, then the size of the result is the product of the sizes of the indices. For example if you were passing in lat and lon each as 1 x 4000 vectors, then G(lat,lon) would give you a 4000 x 4000 result.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Antennas, Microphones, and Sonar Transducers 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!