Rank: 3344 based on 12 downloads (last 30 days) and 1 file submitted
photo

Tim Hattrell

E-mail
Company/University
The University of Leeds

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 uneven grid cfd 3d 3d..., plotting, specialized 12 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 uneven grid cfd 3d 3d..., plotting, specialized 12 1
  • 2.0
2.0 | 1 rating
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com