Griddata Memory Usage for small arrays

5 views (last 30 days)
Rod Lopez
Rod Lopez on 1 Jun 2022
Commented: Walter Roberson on 1 Jun 2022
I am using vq = griddata(x,y,z,v,xq,yq,zq) to interpolate scattered data onto a rectangular grid (note: sample values are complex). Typical array sizes for x,y, etc. are on the order of 500 x 800. Nearest neighbor and v4 work, but take close to 10 minutes to run. While waiting, I notice that my memory usage exceeds 26 GB (32GB installed) and CPU / disk usage is pegged. The line of code is a part of an app designer app, and I have tried moving it to a separate function just in case being inside a Method was making it sluggish, but it did not affect the speed.
What can I do to troubleshoot this issue?
  1 Comment
Walter Roberson
Walter Roberson on 1 Jun 2022
Have you experimented with scatteredInterpolant? What is the size of the query space?

Sign in to comment.

Answers (0)

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by