Rank: 5008 based on 2 downloads (last 30 days) and 1 file submitted
photo

Tim Hattrell

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Tim
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 Mar 2006 qgriddata Quick data gridding for unevenly distributed data sets Author: Tim Hattrell specialized, plotting, uneven grid cfd 3d 3d... 2 1
  • 2.0
2.0 | 1 rating
Comments and Ratings on Tim's Files
Updated File Comment by Comments Rating
17 Mar 2006 qgriddata Quick data gridding for unevenly distributed data sets Author: Tim Hattrell D'Errico, John

This is VERY slow compared to what it could be. You will want a fine grid because of the coarse aggregation. Also very much data, otherwise there will be many holes in the resulting grid. This code may be reasonable for problems with very noisy data, where an interpolant will produce a mess. Beware surfaces with high curvature, as the averaging will flatten them out.

Why use a triple loop over all the cells to do what 3 calls to floor will do for you? I.e., since the grid is equally spaced, subtract the minimum, divide by the spacing, then call floor, and add 1. This provides an index in each dimension for every data point. Now use any strategy you want to accumulate the mean of all points in a given cell. Since this works in 3-d, sparse or accumarray are not options (unless you use a reshape, which will then work very efficiently.)

Top Tags Applied by Tim
plotting, specialized, uneven grid cfd 3d 3d data gridding resample unevenly distribute
Files Tagged by Tim
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 Mar 2006 qgriddata Quick data gridding for unevenly distributed data sets Author: Tim Hattrell specialized, plotting, uneven grid cfd 3d 3d... 2 1
  • 2.0
2.0 | 1 rating

Contact us at files@mathworks.com